canonical / cluster-api-control-plane-provider-microk8s

This project offers a cluster API control plane controller that manages the control plane of a MicroK8s cluster. It is expected to be used along with the respective MicroK8s specific machine bootstrap provider.
https://microk8s.io
7 stars 5 forks source link

Add lables to kubeconfig secrets for CAPI 1.5 compatibility #43

Closed sachinkumarsingh092 closed 1 year ago

sachinkumarsingh092 commented 1 year ago

For 1.5 migrations, changes in how the control plane attaches labels to the kubeconfig-secret must be changed. More info here: https://cluster-api.sigs.k8s.io/developer/architecture/controllers/control-plane#kubeconfig-management

This is due to changes in how upstream CAPI caches secrets: https://github.com/kubernetes-sigs/cluster-api/pull/8940

Fixes https://github.com/canonical/cluster-api-bootstrap-provider-microk8s/issues/75