Skip to content

Commit

Permalink
use cluster name for managed cluster spec's name
Browse files Browse the repository at this point in the history
  • Loading branch information
nawazkh committed Sep 15, 2022
1 parent 0c494a3 commit 441affe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure/scope/managedcontrolplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 441affe

Please sign in to comment.