Skip to content

Commit 217d1f2

Browse files
authored
Merge pull request #99 from canonical/KU-638/fix-ca-secret-fields
set tls.crt and tls.key on the cluster CA secret
2 parents a82df5c + 69295d4 commit 217d1f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

controllers/microk8sconfig_controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,11 @@ func (r *MicroK8sConfigReconciler) getCA(ctx context.Context, scope *Scope) (cer
702702
Name: scope.Cluster.Name + "-ca",
703703
},
704704
Data: map[string][]byte{
705+
// these are the expected names for the certificate and key
706+
"tls.crt": []byte(*newcrt),
707+
"tls.key": []byte(*newkey),
708+
709+
// these are here for backwards-compatibility with older versions of the providers
705710
"crt": []byte(*newcrt),
706711
"key": []byte(*newkey),
707712
},

0 commit comments

Comments
 (0)