diff --git a/operators/endpointmetrics/main.go b/operators/endpointmetrics/main.go index e5542091dd..6172c04850 100644 --- a/operators/endpointmetrics/main.go +++ b/operators/endpointmetrics/main.go @@ -93,7 +93,7 @@ func main() { }, v1.SchemeGroupVersion.WithKind("ConfigMap"): { {FieldSelector: namespaceSelector}, - {FieldSelector: fmt.Sprintf("metadata.name==%s,metadata.namespace!=%s", + {FieldSelector: fmt.Sprintf("metadata.name==%s,metadata.namespace==%s", operatorconfig.AllowlistCustomConfigMapName, "open-cluster-management-observability")}, }, v1.SchemeGroupVersion.WithKind("ConfigMap"): {