Skip to content

Commit

Permalink
Merge pull request #99 from canonical/KU-638/fix-ca-secret-fields
Browse files Browse the repository at this point in the history
set tls.crt and tls.key on the cluster CA secret
  • Loading branch information
neoaggelos authored Apr 10, 2024
2 parents a82df5c + 69295d4 commit 217d1f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/microk8sconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
Expand Down

0 comments on commit 217d1f2

Please sign in to comment.