Skip to content

fix: use NutanixCluster name for PC resources - #796

Merged
abhay-nutanix merged 1 commit into
mainfrom
issue/identicalResources
Sep 23, 2026
Merged

abhay-nutanix merged 1 commit into
mainfrom
issue/identicalResources

Conversation

@abhay-nutanix

Copy link
Copy Markdown
Contributor

Name new NutanixVirtualHADomain objects from the NutanixCluster instead of the CAPI Cluster. vHA categories, recovery plans, and protection policies take their Prism Central names from that object, so they follow the NutanixCluster as well.

Greenfield
A new metro cluster creates a NutanixVirtualHADomain named {NutanixCluster}-{metro}. Categories, recovery plans, and the protection policy are created from that name. Two clusters on the same metro still get distinct objects, because the NutanixCluster name is part of the object name.

A new non-metro cluster still creates KubernetesClusterName with the CAPI Cluster name when the first VM is created. Delete looks that category up by the NutanixCluster name, so cleanup matches only when those two names are the same.

Brownfield
An existing NutanixVirtualHADomain is found by its metro reference and is not renamed. Its categories, recovery plans, and protection policy stay on the previous {CAPI Cluster}-{metro} stem. There is no migration of Prism Central resources.

An existing non-metro cluster already has KubernetesClusterName=. After upgrade, delete looks for KubernetesClusterName=. When those names differ, the category created before this change is left in Prism Central. The obsolete kubernetes-io-cluster-* category is still deleted using the CAPI Cluster name.

@abhay-nutanix
abhay-nutanix force-pushed the issue/identicalResources branch from 2ac27fd to a99c44f Compare September 23, 2026 08:13
@abhay-nutanix
abhay-nutanix merged commit 15a84d1 into main Sep 23, 2026
15 checks passed
@abhay-nutanix
abhay-nutanix deleted the issue/identicalResources branch September 23, 2026 08:17
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.

3 participants