Skip to content

Commit

Permalink
only copy over TLSkey
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Nov 24, 2023
1 parent ff342fa commit cdc9454
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/controllers/certmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ func (r *Reconciler) setupTLS(ctx context.Context, cr *model.CryostatInstance) (
Type: secret.Type,
}
err = r.createOrUpdateSecret(ctx, namespaceSecret, cr.Object, func() error {
namespaceSecret.Data = secret.Data
if namespaceSecret.Data == nil {
namespaceSecret.Data = map[string][]byte{}
}
namespaceSecret.Data["corev1.TLSCertKey"] = secret.Data["corev1.TLSCertKey"]
return nil
})
if err != nil {
Expand Down

0 comments on commit cdc9454

Please sign in to comment.