Skip to content

Add PreExistingNSXNetworkConfigAnnotation to support Net Operator adopting existing NSXNetworkConfigurations - #67

Open
ihgann wants to merge 4 commits into
vmware-tanzu:masterfrom
ihgann:topic/ig010188/vkal-41389-adopt-brownfield-nsx-netcfg
Open

Add PreExistingNSXNetworkConfigAnnotation to support Net Operator adopting existing NSXNetworkConfigurations#67
ihgann wants to merge 4 commits into
vmware-tanzu:masterfrom
ihgann:topic/ig010188/vkal-41389-adopt-brownfield-nsx-netcfg

Conversation

@ihgann

@ihgann ihgann commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Note: Dependent on #62.


This change adds a new annotation, netoperator.vmware.com/nsx-network-configuration, to indicate that when a NamespaceNetworkConfiguration is created with provider type nsx-tier1 and this annotation is set, the NSXNetworkConfiguration that is referenced will be taken over ownership by the LCM controller of this NamespaceNetworkConfiguration, instead of the default flow of constructing our own, new, NSXNetworkConfiguration.

The intention of this is to handful brownfield cases where Net Operator should start to take ownership of network contracts, but previous Supervisors already maintain a NSXNetworkConfiguration that was previously LCM'd elsewhere.

Constraints:

  • This annotation may only be set at CREATE of the NamespaceNetworkConfiguration, when provider type is nsx-tier1.
  • After application, the spec from the NamespaceNetworkConfiguration becomes source-of-truth, and the spec of the associated NSXNetworkConfiguration will become reconciled to reflect the state of the existing NamespaceNetworkConfiguration.

Validations will be managed in Net Operator.

ihgann added 4 commits August 14, 2026 09:47
Add the constant that NamespaceNetworkConfiguration reacts to for
adopting a pre-existing VPCNetworkConfiguration named ahead of the
NNC, instead of always creating one named after the NNC itself.
Needed for brownfield namespaces migrating from the legacy
wcpsvc/VCDB path.

Bug number: VKAL-40713

AI-Tool-Used: claude
AI-Model-Used: claude-sonnet-5
AI-Tool-Use-Level: high
AI-Code-Category: production
AI-Time-Saved: 1

Testing Done: go build ./...
Mirrors PreExistingVPCNetworkConfigAnnotation (VKAL-40713) for the
NSXTier1/NCP provider so an NNC can adopt a pre-existing
NSXNetworkConfiguration CR instead of auto-creating one.
@ihgann ihgann changed the title Add PreExistingVPCNetworkConfigAnnotation to support Net Operator adopting existing VPCNetworkConfigurations Add PreExistingNSXNetworkConfigAnnotation to support Net Operator adopting existing NSXNetworkConfigurations Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant