Skip to content

Commit

Permalink
endpointmetrics: Fix incorrect matcher on custom metrics allowlist co…
Browse files Browse the repository at this point in the history
…nfig in cache

Signed-off-by: Philip Gough <philip.p.gough@gmail.com>
  • Loading branch information
philipgough committed Sep 9, 2024
1 parent 6fbfaa0 commit d27f9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operators/endpointmetrics/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"): {
Expand Down

0 comments on commit d27f9fd

Please sign in to comment.