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 450bc08 commit 79ff2b7
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 @@ -360,7 +360,7 @@ func (r *SecretSyncReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
// Watch SecretSyncs
For(&syncv1.SecretSync{}).
// Watch secrets owned by SecretSyncs
// Watch secrets owned by SecretSyncs.
Owns(&corev1.Secret{}, builder.WithPredicates(r.destinationNamespacePredicate(ctx))).
// Watch secrets in the sourceNamespace using on create, update and delete events
Watches(
Expand Down

0 comments on commit 79ff2b7

Please sign in to comment.