Skip to content

Commit

Permalink
[SAPBTPCFS-15469] Update Service Instance on change of 'parametersFro…
Browse files Browse the repository at this point in the history
…m' secret
  • Loading branch information
I065450 committed Dec 16, 2024
1 parent 566bb9e commit 32bb602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/secret_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (r *SecretReconciler) Reconcile(ctx context.Context, req reconcile.Request)
func (r *SecretReconciler) SetupWithManager(mgr ctrl.Manager) error {
predicates := predicate.Funcs{
UpdateFunc: func(e event.UpdateEvent) bool {
return utils.IsSecretWatched(e.ObjectNew.GetAnnotations()) && (isSecretDataChanged(e) || isSecretInDelete(e))
return (utils.IsSecretWatched(e.ObjectNew.GetAnnotations()) && isSecretDataChanged(e)) || isSecretInDelete(e)
},
CreateFunc: func(e event.CreateEvent) bool {
return utils.IsSecretWatched(e.Object.GetAnnotations())
Expand Down

0 comments on commit 32bb602

Please sign in to comment.