Skip to content

Commit

Permalink
Merge pull request #3957 from mboersma/label-kubeconfig-for-caching
Browse files Browse the repository at this point in the history
[release-1.10] Label kubeconfig with cluster name
  • Loading branch information
k8s-ci-robot authored Sep 5, 2023
2 parents 10572c9 + f000d8d commit f23c804
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions azure/scope/managedcontrolplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ func (s *ManagedControlPlaneScope) MakeEmptyKubeConfigSecret() corev1.Secret {
OwnerReferences: []metav1.OwnerReference{
*metav1.NewControllerRef(s.ControlPlane, infrav1.GroupVersion.WithKind("AzureManagedControlPlane")),
},
Labels: map[string]string{clusterv1.ClusterNameLabel: s.Cluster.Name},
},
}
}
Expand Down

0 comments on commit f23c804

Please sign in to comment.