Skip to content

Commit

Permalink
set tls.crt and tls.key on the cluster CA secret
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos committed Apr 10, 2024
1 parent a82df5c commit 69295d4
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 69295d4

Please sign in to comment.