Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Nov 2, 2023
1 parent 7715bcf commit 8e46946
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/controllers/certmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,12 @@ func (r *Reconciler) setupTLS(ctx context.Context, cr *model.CryostatInstance) (
if err != nil {
return nil, err
}
namespaceSecret := secret.DeepCopy()
namespaceSecret.Namespace = ns
namespaceSecret := &corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
Name: secret.Name,
Namespace: ns,
},
}
err = r.deleteSecret(ctx, namespaceSecret)
if err != nil {
return nil, err
Expand Down

0 comments on commit 8e46946

Please sign in to comment.