From 32bb602a27db098823570d1f2a633c1a73d822a7 Mon Sep 17 00:00:00 2001 From: i065450 Date: Mon, 16 Dec 2024 15:04:53 +0200 Subject: [PATCH] [SAPBTPCFS-15469] Update Service Instance on change of 'parametersFrom' secret --- controllers/secret_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/secret_controller.go b/controllers/secret_controller.go index 84cabb38..63ff9347 100644 --- a/controllers/secret_controller.go +++ b/controllers/secret_controller.go @@ -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())