Skip to content

Commit a4507c2

Browse files
authored
Merge pull request #3958 from mboersma/label-kubeconfig-for-caching-1.9
[release-1.9] Label kubeconfig with cluster name
2 parents efe9c73 + 6d7e0b8 commit a4507c2

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)