From a99c44f902dbec5ce115fbe97edffa36644f43df Mon Sep 17 00:00:00 2001 From: Abhay Date: Wed, 23 Sep 2026 13:20:36 +0530 Subject: [PATCH] fix: use NutanixCluster name for PC resources --- controllers/nutanixcluster_controller.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/controllers/nutanixcluster_controller.go b/controllers/nutanixcluster_controller.go index d1c837a3e7..1f9f362218 100644 --- a/controllers/nutanixcluster_controller.go +++ b/controllers/nutanixcluster_controller.go @@ -438,9 +438,7 @@ func (r *NutanixClusterReconciler) reconcileVHADomains(rctx *nctx.ClusterContext Kind: infrav1.NutanixVirtualHADomainKind, }, ObjectMeta: metav1.ObjectMeta{ - // Scope the name to the owning cluster so two clusters referencing the same - // NutanixMetro do not collide on a single NutanixVirtualHADomain object. - Name: vHADomainName(r.clusterName(rctx), metroName), + Name: vHADomainName(rctx.NutanixCluster.Name, metroName), Namespace: namespace, OwnerReferences: []metav1.OwnerReference{ *metav1.NewControllerRef(rctx.NutanixCluster, infrav1.GroupVersion.WithKind(infrav1.NutanixClusterKind)),