Skip to content

Commit f000d8d

Browse files
committed
Label kubeconfig with cluster name
1 parent 10572c9 commit f000d8d

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
@@ -611,6 +611,7 @@ func (s *ManagedControlPlaneScope) MakeEmptyKubeConfigSecret() corev1.Secret {
611611
OwnerReferences: []metav1.OwnerReference{
612612
*metav1.NewControllerRef(s.ControlPlane, infrav1.GroupVersion.WithKind("AzureManagedControlPlane")),
613613
},
614+
Labels: map[string]string{clusterv1.ClusterNameLabel: s.Cluster.Name},
614615
},
615616
}
616617
}

0 commit comments

Comments
 (0)