From 1f31307daf1582ed8d5c1214ad2028ccefb0d41c Mon Sep 17 00:00:00 2001 From: nawazkh Date: Thu, 15 Sep 2022 08:38:29 -0700 Subject: [PATCH] use cluster name for managed cluster spec's name --- azure/scope/managedcontrolplane.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure/scope/managedcontrolplane.go b/azure/scope/managedcontrolplane.go index 2dcf3962e8f..915def46d8b 100644 --- a/azure/scope/managedcontrolplane.go +++ b/azure/scope/managedcontrolplane.go @@ -413,7 +413,7 @@ func (s *ManagedControlPlaneScope) ManagedClusterAnnotations() map[string]string // ManagedClusterSpec returns the managed cluster spec. func (s *ManagedControlPlaneScope) ManagedClusterSpec(ctx context.Context) azure.ResourceSpecGetter { managedClusterSpec := managedclusters.ManagedClusterSpec{ - Name: s.ControlPlane.Name, + Name: s.ClusterName(), ResourceGroup: s.ControlPlane.Spec.ResourceGroupName, NodeResourceGroup: s.ControlPlane.Spec.NodeResourceGroupName, Location: s.ControlPlane.Spec.Location,