Skip to content

Commit 29b6561

Browse files
committed
fix: use root variable for namespace selector in metricprobes
1 parent df7b5a0 commit 29b6561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/azure-metrics-exporter/templates/prometheus/servicemonitor.metricprobe.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
{{- else }}
2626
namespaceSelector:
2727
matchNames:
28-
- {{ template "azure-metrics-exporter.namespace" . }}
28+
- {{ template "azure-metrics-exporter.namespace" $root }}
2929
{{- end }}
3030
endpoints:
3131
- port: {{ $root.Values.service.portName }}

0 commit comments

Comments
 (0)