diff --git a/controllers/microk8sconfig_controller.go b/controllers/microk8sconfig_controller.go index 63406d1..c0b80a6 100644 --- a/controllers/microk8sconfig_controller.go +++ b/controllers/microk8sconfig_controller.go @@ -702,6 +702,11 @@ func (r *MicroK8sConfigReconciler) getCA(ctx context.Context, scope *Scope) (cer Name: scope.Cluster.Name + "-ca", }, Data: map[string][]byte{ + // these are the expected names for the certificate and key + "tls.crt": []byte(*newcrt), + "tls.key": []byte(*newkey), + + // these are here for backwards-compatibility with older versions of the providers "crt": []byte(*newcrt), "key": []byte(*newkey), },