File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,24 @@ patches:
4141 target :
4242 kind : Deployment
4343
44+ # [NAMESPACE-SELECTOR] Ensure the ServiceMonitor namespaceSelector matches the
45+ # deployment namespace. Without this, the hardcoded value in monitor.yaml won't
46+ # update when an overlay changes the namespace (e.g. deploying into 'opendatahub'
47+ # or `redhat-ods-operator`).
48+ replacements :
49+ - source :
50+ kind : Deployment
51+ name : controller-manager
52+ fieldPath : metadata.namespace
53+ targets :
54+ - select :
55+ kind : ServiceMonitor
56+ group : monitoring.coreos.com
57+ version : v1
58+ name : controller-manager-metrics-monitor
59+ fieldPaths :
60+ - spec.namespaceSelector.matchNames.0
61+
4462# Uncomment the patches line if you enable Metrics and CertManager
4563# [METRICS-WITH-CERTS] To enable metrics protected with certManager, uncomment the following line.
4664# This patch will protect the metrics with certManager self-signed certs.
You can’t perform that action at this time.
0 commit comments