Skip to content

Commit d64736d

Browse files
Merge pull request vmware-tanzu#828 from seanpang-vmware/removeip
Remove vpcPath from networkinfo CRD
2 parents def6c84 + 80eb4e5 commit d64736d

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

build/yaml/crd/vpc/crd.nsx.vmware.com_networkinfos.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ spec:
5555
items:
5656
type: string
5757
type: array
58-
vpcPath:
59-
description: NSX Policy path for VPC.
60-
type: string
6158
required:
6259
- defaultSNATIP
6360
- name

build/yaml/samples/nsx_v1alpha1_networkinfo.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ vpcs:
1212
loadBalancerIPAddresses: 172.26.0.0/26
1313
name: vpc-d110d5aa-006d-4b59-9caf-424a4fba932c--kube-system
1414
privateIPs:
15-
- 172.26.0.0/16
16-
vpcPath: /orgs/default/projects/project-quality/vpcs/19a8a52e-beb0-4396-91ce-5821a15a43db
15+
- 172.26.0.0/16

pkg/apis/vpc/v1alpha1/networkinfo_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ type VPCState struct {
3939
LoadBalancerIPAddresses string `json:"loadBalancerIPAddresses,omitempty"`
4040
// Private CIDRs used for the VPC.
4141
PrivateIPs []string `json:"privateIPs,omitempty"`
42-
// NSX Policy path for VPC.
43-
VPCPath string `json:"vpcPath,omitempty"`
4442
}
4543

4644
func init() {

pkg/controllers/networkinfo/networkinfo_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ func (r *NetworkInfoReconciler) Reconcile(ctx context.Context, req ctrl.Request)
322322
DefaultSNATIP: snatIP,
323323
LoadBalancerIPAddresses: cidr,
324324
PrivateIPs: privateIPs,
325-
VPCPath: *createdVpc.Path,
326325
}
327326

328327
// AKO needs to know the AVI subnet path created by NSX

0 commit comments

Comments
 (0)