Skip to content

Commit 6d7e0b8

Browse files
committed
Label kubeconfig with cluster name
1 parent efe9c73 commit 6d7e0b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

azure/scope/managedcontrolplane.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ func (s *ManagedControlPlaneScope) MakeEmptyKubeConfigSecret() corev1.Secret {
591591
OwnerReferences: []metav1.OwnerReference{
592592
*metav1.NewControllerRef(s.ControlPlane, infrav1.GroupVersion.WithKind("AzureManagedControlPlane")),
593593
},
594+
Labels: map[string]string{clusterv1.ClusterNameLabel: s.Cluster.Name},
594595
},
595596
}
596597
}

0 commit comments

Comments
 (0)