Skip to content

Commit

Permalink
Add LBSubnetPath under VPC status
Browse files Browse the repository at this point in the history
For AVI integration, we need to set Avi Subnet Path under VPC
CR Status.
  • Loading branch information
lxiaopei committed Aug 8, 2023
1 parent 40c74f6 commit 2899dc4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
19 changes: 17 additions & 2 deletions build/yaml/crd/nsx.vmware.com_vpcs.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.11.0
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: vpcs.nsx.vmware.com
spec:
Expand Down Expand Up @@ -109,7 +110,13 @@ spec:
type: object
type: array
defaultSNATIP:
description: Default SNAT IP for private Subnets
description: Default SNAT IP for private Subnets.
type: string
lbSubnetCIDR:
description: CIDR for LB Subnet.
type: string
lbSubnetPath:
description: NSX PolicyPath for LB Subnet.
type: string
nsxResourcePath:
description: NSX VPC Policy API resource path.
Expand All @@ -118,10 +125,18 @@ spec:
- cidrsUsage
- conditions
- defaultSNATIP
- lbSubnetCIDR
- lbSubnetPath
- nsxResourcePath
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
10 changes: 7 additions & 3 deletions pkg/apis/v1alpha1/vpc_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,13 @@ type VPCStatus struct {
Conditions []Condition `json:"conditions"`
// NSX VPC Policy API resource path.
NSXResourcePath string `json:"nsxResourcePath"`
// Default SNAT IP for private Subnets
DefaultSNATIP string `json:"defaultSNATIP"`
CIDRsUsage VPCCIDRsUsageInfo `json:"cidrsUsage"`
// Default SNAT IP for private Subnets.
DefaultSNATIP string `json:"defaultSNATIP"`
// NSX PolicyPath for LB Subnet.
LBSubnetPath string `json:"lbSubnetPath"`
// CIDR for LB Subnet.
LBSubnetCIDR string `json:"lbSubnetCIDR"`
CIDRsUsage VPCCIDRsUsageInfo `json:"cidrsUsage"`
}

type VPCCIDRsUsageInfo struct {
Expand Down

0 comments on commit 2899dc4

Please sign in to comment.