Skip to content

Commit

Permalink
Add updated NSX Operator CRDs (#591)
Browse files Browse the repository at this point in the history
This change addresses some updates to NSX Operator CRDs.

NSX Operator has updated their API Group from "nsx.vmware.com" to
"crd.nsx.vmware.com" for a handful of their CRDs - particularly related
to VPCs.

Additionally, a few CRDs have been removed/added.

NSX T1-based CRDs are unchanged.

Signed-off-by: Ian Gann <ian.gann@broadcom.com>
  • Loading branch information
ihgann authored Sep 17, 2024
1 parent d29ad24 commit ee18347
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
19 changes: 11 additions & 8 deletions docs/supervisor-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ The default list of blocked resources in configmap is:

### vSphere with Tanzu Supervisor Cluster resources

addressbindings.crd.nsx.vmware.com
agentinstalls.installers.tmc.cloud.vmware.com
availabilityzones.topology.tanzu.vmware.com
aviloadbalancerconfigs.netoperator.vmware.com
Expand Down Expand Up @@ -57,9 +58,11 @@ The default list of blocked resources in configmap is:
imagedisks.imagecontroller.vmware.com
installoptions.appplatform.wcp.vmware.com
installrequirements.appplatform.wcp.vmware.com
ipaddressallocations.crd.nsx.vmware.com
ipamblocks.crd.projectcalico.org
ipamconfigs.crd.projectcalico.org
ipamhandles.crd.projectcalico.org
ipblocksinfos.crd.nsx.vmware.com
ippools.crd.projectcalico.org
ippools.netoperator.vmware.com
ippools.nsx.vmware.com
Expand All @@ -78,20 +81,13 @@ The default list of blocked resources in configmap is:
members.registryagent.vmware.com
namespacenetworkinfos.nsx.vmware.com
ncpconfigs.nsx.vmware.com
networkinfos.crd.nsx.vmware.com
networkinterfaces.netoperator.vmware.com
networks.netoperator.vmware.com
nsxerrors.nsx.vmware.com
nsxlocks.nsx.vmware.com
nsxnetworkconfigurations.nsx.vmware.com
nsxnetworkinterfaces.nsx.vmware.com
vpcnetworkconfigurations.nsx.vmware.com
networkinfos.nsx.vmware.com
subnets.nsx.vmware.com
subnetsets.nsx.vmware.com
subnetports.nsx.vmware.com
staticroutes.nsx.vmware.com
ippools.nsx.vmware.com
securitypolicies.nsx.vmware.com
nsxserviceaccounts.nsx.vmware.com
orders.acme.cert-manager.io
persistenceinstanceinfoes.psp.wcp.vmware.com
Expand All @@ -104,11 +100,17 @@ The default list of blocked resources in configmap is:
resourcecheckreports.psp.wcp.vmware.com
resourcechecks.psp.wcp.vmware.com
routesets.nsx.vmware.com
securitypolicies.crd.nsx.vmware.com
securitypolicies.nsx.vmware.com
statefuldrainnodes.psp.wcp.vmware.com
statefulreadynodes.psp.wcp.vmware.com
staticroutes.crd.nsx.vmware.com
storagepolicies.appplatform.wcp.vmware.com
storagepolicies.psp.wcp.vmware.com
storagepools.cns.vmware.com
subnets.crd.nsx.vmware.com
subnetports.crd.nsx.vmware.com
subnetsets.crd.nsx.vmware.com
supervisorservices.appplatform.wcp.vmware.com
tanzukubernetesaddons.run.tanzu.vmware.com
tanzukubernetesclusters.run.tanzu.vmware.com
Expand All @@ -126,6 +128,7 @@ The default list of blocked resources in configmap is:
virtualnetworkinterfaces.vmware.com
virtualnetworks.vmware.com
vmxnet3networkinterfaces.netoperator.vmware.com
vpcnetworkconfigurations.crd.nsx.vmware.com
vspheredistributednetworks.netoperator.vmware.com
wcpclusters.infrastructure.cluster.vmware.com
wcpmachines.infrastructure.cluster.vmware.com
Expand Down
18 changes: 11 additions & 7 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ const (
// words get an "s" attached.
var ResourcesToBlock = map[string]bool{
// Kubernetes with vSphere Supervisor Cluster resources
"addressbindings.crd.nsx.vmware.com": true,
"agentinstalls.installers.tmc.cloud.vmware.com": true,
"availabilityzones.topology.tanzu.vmware.com": true,
"aviloadbalancerconfigs.netoperator.vmware.com": true,
Expand Down Expand Up @@ -239,9 +240,11 @@ var ResourcesToBlock = map[string]bool{
//"images.imagecontroller.vmware.com": true, // DO NOT ADD IT BACK
"installoptions.appplatform.wcp.vmware.com": true,
"installrequirements.appplatform.wcp.vmware.com": true,
"ipaddressallocations.crd.nsx.vmware.com": true,
"ipamblocks.crd.projectcalico.org": true,
"ipamconfigs.crd.projectcalico.org": true,
"ipamhandles.crd.projectcalico.org": true,
"ipblocksinfos.crd.nsx.vmware.com": true,
"ippools.crd.projectcalico.org": true,
"ippools.netoperator.vmware.com": true,
"ippools.nsx.vmware.com": true,
Expand All @@ -263,20 +266,14 @@ var ResourcesToBlock = map[string]bool{
// We comment the NetworkAttachmentDefinition resource out as it is not a vSphere specific resource
//"network-attachment-definitions.k8s.cni.cncf.io": true, // real name of NetworkAttachmentDefinition
//"networkattachmentdefinitions.k8s.cni.cncf.io": true, // parsed name of NetworkAttachmentDefinition
"networkinfos.crd.nsx.vmware.com": true,
"networkinterfaces.netoperator.vmware.com": true,
"networks.netoperator.vmware.com": true,
"nsxerrors.nsx.vmware.com": true,
//"nsxlbmonitors.vmware.com": true, // DO NOT ADD IT BACK
//"nsxloadbalancermonitors.vmware.com": true, // DO NOT ADD IT BACK
"nsxlocks.nsx.vmware.com": true,
"nsxnetworkinterfaces.nsx.vmware.com": true,
"vpcnetworkconfigurations.nsx.vmware.com": true,
"networkinfos.nsx.vmware.com": true,
"subnets.nsx.vmware.com": true,
"subnetsets.nsx.vmware.com": true,
"subnetports.nsx.vmware.com": true,
"staticroutes.nsx.vmware.com": true,
"securitypolicies.nsx.vmware.com": true,
"nsxnetworkconfigurations.nsx.vmware.com": true,
"nsxserviceaccounts.nsx.vmware.com": true,
"orders.acme.cert-manager.io": true,
Expand All @@ -290,11 +287,17 @@ var ResourcesToBlock = map[string]bool{
"resourcecheckreports.psp.wcp.vmware.com": true,
"resourcechecks.psp.wcp.vmware.com": true,
"routesets.nsx.vmware.com": true,
"securitypolicies.crd.nsx.vmware.com": true,
"securitypolicies.nsx.vmware.com": true,
"statefuldrainnodes.psp.wcp.vmware.com": true,
"statefulreadynodes.psp.wcp.vmware.com": true,
"staticroutes.crd.nsx.vmware.com": true,
"storagepolicies.appplatform.wcp.vmware.com": true,
"storagepolicies.psp.wcp.vmware.com": true,
"storagepools.cns.vmware.com": true,
"subnetports.crd.nsx.vmware.com": true,
"subnets.crd.nsx.vmware.com": true,
"subnetsets.crd.nsx.vmware.com": true,
"supervisorservices.appplatform.wcp.vmware.com": true,
"tanzukubernetesaddons.run.tanzu.vmware.com": true,
"tanzukubernetesclusters.run.tanzu.vmware.com": true,
Expand All @@ -312,6 +315,7 @@ var ResourcesToBlock = map[string]bool{
"virtualnetworkinterfaces.vmware.com": true,
"virtualnetworks.vmware.com": true,
"vmxnet3networkinterfaces.netoperator.vmware.com": true,
"vpcnetworkconfigurations.crd.nsx.vmware.com": true,
"vspheredistributednetworks.netoperator.vmware.com": true,
"wcpclusters.infrastructure.cluster.vmware.com": true,
"wcpnamespaces.appplatform.wcp.vmware.com": true,
Expand Down

0 comments on commit ee18347

Please sign in to comment.