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 20, 2023
1 parent d23525c commit 6775f1b
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 6775f1b

Please sign in to comment.