Skip to content

Commit

Permalink
Up controller to skip if source secret data matches destination
Browse files Browse the repository at this point in the history
  • Loading branch information
samirtahir91 committed Mar 23, 2024
1 parent 79ff2b7 commit d70f83a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/secretsync_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func (r *SecretSyncReconciler) destinationNamespacePredicate(ctx context.Context

// Fetch objects
newSecret := &corev1.Secret{}
SourceSecret := &corev1.Secret{}
sourceSecret := &corev1.Secret{}
if err := r.Get(ctx, client.ObjectKey{Namespace: e.ObjectNew.GetNamespace(), Name: e.ObjectNew.GetName()}, newSecret); err != nil {
logctx.Error(err, "Failed to get new secret", "Namespace", e.ObjectNew.GetNamespace(), "Name", e.ObjectNew.GetName())
return false
Expand Down

0 comments on commit d70f83a

Please sign in to comment.