Skip to content

Commit f23c804

Browse files
authored
Merge pull request #3957 from mboersma/label-kubeconfig-for-caching
[release-1.10] Label kubeconfig with cluster name
2 parents 10572c9 + f000d8d commit f23c804

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)