Skip to content

Commit

Permalink
flip condition
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Oct 1, 2024
1 parent b1a53c0 commit c33b9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/stacks/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (r *StackReconciler) upsertRunSecret(ctx context.Context) (*corev1.Secret,
return secret, nil
}

if r.hasRunSecretData(secret.Data) {
if !r.hasRunSecretData(secret.Data) {
logger.V(2).Info("updating secret", "namespace", secret.Namespace, "name", secret.Name)
secret.StringData = r.getRunSecretData()
if err := r.k8sClient.Update(ctx, secret); err != nil {
Expand Down

0 comments on commit c33b9cc

Please sign in to comment.