From 109d14c488b43f052a7362c7609932a1e345cade Mon Sep 17 00:00:00 2001 From: Coleen Iona Quadros Date: Mon, 11 Nov 2024 16:49:22 +0100 Subject: [PATCH] look for local cluster label Signed-off-by: Coleen Iona Quadros --- .../controllers/placementrule/predicate_func.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operators/multiclusterobservability/controllers/placementrule/predicate_func.go b/operators/multiclusterobservability/controllers/placementrule/predicate_func.go index 26658c08c..cab66c4ab 100644 --- a/operators/multiclusterobservability/controllers/placementrule/predicate_func.go +++ b/operators/multiclusterobservability/controllers/placementrule/predicate_func.go @@ -81,7 +81,7 @@ func getClusterPreds() predicate.Funcs { //ACM 8509: Special case for local-cluster, we deploy endpoint and metrics collector in the hub //whether hubSelfManagement is enabled or not - if isLocalCluster(e.Object) { + if !isLocalCluster(e.Object) { managedClusterList.Delete(e.Object.GetName()) } managedClusterImageRegistryMutex.Lock()