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 18, 2024
1 parent 9fcbeed commit 11fd89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/controller_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func RemoveWatchForSecret(ctx context.Context, k8sClient client.Client, secretKe
if err := k8sClient.Get(ctx, secretKey, secret); err != nil {
return client.IgnoreNotFound(err)
}
if key == common.WatchSecretAnnotation+instanceUID {
if key == common.InstanceSecretRefLabel+string(secret.UID) {
delete(secret.Annotations, common.WatchSecretAnnotation+instanceUID)
if !IsSecretWatched(secret.Annotations) {
controllerutil.RemoveFinalizer(secret, common.FinalizerName)
Expand Down

0 comments on commit 11fd89c

Please sign in to comment.