Skip to content

Commit

Permalink
Add required label to kubeconfig (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos authored Sep 8, 2023
1 parent 684450e commit 44b88da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ func (r *MicroK8sControlPlaneReconciler) kubeconfigForCluster(ctx context.Contex
ObjectMeta: metav1.ObjectMeta{
Namespace: cluster.Namespace,
Name: cluster.Name + "-kubeconfig",
Labels: map[string]string{
clusterv1.ClusterLabelName: cluster.Name,
},
},
Data: map[string][]byte{
"value": []byte(*kubeconfig),
Expand Down

0 comments on commit 44b88da

Please sign in to comment.