From 4e913b56e5af8e40d1a66152cb76a3b9e3a6d3ff Mon Sep 17 00:00:00 2001 From: Deng Yun Date: Wed, 15 Jan 2025 11:27:38 +0800 Subject: [PATCH] Refine NetworkInfo CR VPCState.LoadBalancerIPAddresses description In NSX LB, we don't set NSX LN SNAT IPs in NetworkInfo CR VPCState.LoadBalancerIPAddresses and leave it as empty. So, removing the description of adding NSX LB IPs not to make users confuse. --- build/yaml/crd/vpc/crd.nsx.vmware.com_networkinfos.yaml | 3 +-- pkg/apis/vpc/v1alpha1/networkinfo_types.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build/yaml/crd/vpc/crd.nsx.vmware.com_networkinfos.yaml b/build/yaml/crd/vpc/crd.nsx.vmware.com_networkinfos.yaml index 5430f4ff6..0fe5b8835 100644 --- a/build/yaml/crd/vpc/crd.nsx.vmware.com_networkinfos.yaml +++ b/build/yaml/crd/vpc/crd.nsx.vmware.com_networkinfos.yaml @@ -44,8 +44,7 @@ spec: description: Default SNAT IP for Private Subnets. type: string loadBalancerIPAddresses: - description: LoadBalancerIPAddresses (AVI SE Subnet CIDR or NSX - LB SNAT IPs). + description: LoadBalancerIPAddresses (AVI SE Subnet CIDR). type: string name: description: VPC name. diff --git a/pkg/apis/vpc/v1alpha1/networkinfo_types.go b/pkg/apis/vpc/v1alpha1/networkinfo_types.go index a6aaf3b28..d88c50384 100644 --- a/pkg/apis/vpc/v1alpha1/networkinfo_types.go +++ b/pkg/apis/vpc/v1alpha1/networkinfo_types.go @@ -35,7 +35,7 @@ type VPCState struct { Name string `json:"name"` // Default SNAT IP for Private Subnets. DefaultSNATIP string `json:"defaultSNATIP"` - // LoadBalancerIPAddresses (AVI SE Subnet CIDR or NSX LB SNAT IPs). + // LoadBalancerIPAddresses (AVI SE Subnet CIDR). LoadBalancerIPAddresses string `json:"loadBalancerIPAddresses,omitempty"` // Private CIDRs used for the VPC. PrivateIPs []string `json:"privateIPs,omitempty"`