From 323c66cac4b36f16b590d3b0f10e089e6e6907cc Mon Sep 17 00:00:00 2001 From: Xie Zheng Date: Fri, 23 Feb 2024 11:31:30 +0800 Subject: [PATCH] Implement image fetcher feature Sync nsx.vmware.com/node-id annotation of subnetport with nsx-t. Sync wcp.vmware.com/image-fetcher: "true" and namespace_uid label of subnetport with tags of nsx-t. Signed-off-by: Xie Zheng --- pkg/nsx/services/securitypolicy/builder_test.go | 8 -------- pkg/nsx/services/securitypolicy/firewall_test.go | 4 ---- 2 files changed, 12 deletions(-) diff --git a/pkg/nsx/services/securitypolicy/builder_test.go b/pkg/nsx/services/securitypolicy/builder_test.go index b79d40a2c..3c7f83ccd 100644 --- a/pkg/nsx/services/securitypolicy/builder_test.go +++ b/pkg/nsx/services/securitypolicy/builder_test.go @@ -231,10 +231,6 @@ func TestBuildTargetTags(t *testing.T) { Scope: &tagScopeNamespace, Tag: &tagValueNS, }, - { - Scope: &tagScopeNamespaceUID, - Tag: &tagValueNSUID, - }, { Scope: &tagScopeSecurityPolicyCRName, Tag: &tagValuePolicyCRName, @@ -300,10 +296,6 @@ func TestBuildPeerTags(t *testing.T) { Scope: &tagScopeNamespace, Tag: &tagValueNS, }, - { - Scope: &tagScopeNamespaceUID, - Tag: &tagValueNSUID, - }, { Scope: &tagScopeSecurityPolicyCRName, Tag: &tagValuePolicyCRName, diff --git a/pkg/nsx/services/securitypolicy/firewall_test.go b/pkg/nsx/services/securitypolicy/firewall_test.go index 26979724c..1075306d1 100644 --- a/pkg/nsx/services/securitypolicy/firewall_test.go +++ b/pkg/nsx/services/securitypolicy/firewall_test.go @@ -263,10 +263,6 @@ var ( Scope: &tagScopeNamespace, Tag: &tagValueNS, }, - { - Scope: &tagScopeNamespaceUID, - Tag: &tagValueNSUID, - }, { Scope: &tagScopeSecurityPolicyCRName, Tag: &tagValuePolicyCRName,