diff --git a/operators/multiclusterobservability/controllers/placementrule/predicate_func.go b/operators/multiclusterobservability/controllers/placementrule/predicate_func.go index 236bb20f81..ad5287c816 100644 --- a/operators/multiclusterobservability/controllers/placementrule/predicate_func.go +++ b/operators/multiclusterobservability/controllers/placementrule/predicate_func.go @@ -82,7 +82,9 @@ func getClusterPreds() predicate.Funcs { return false } - delete(managedClusterImageRegistry, e.Object.GetName()) + if e.Object.GetName() != localClusterName { + updateManagedClusterList(e.Object) + } managedClusterImageRegistryMutex.Lock() delete(managedClusterImageRegistry, e.Object.GetName()) managedClusterImageRegistryMutex.Unlock()