Skip to content

Commit c27f9b2

Browse files
authored
[charts/azure-metrics-exporter]: fix broken servicemonitor.metricprobe.yaml (#62)
## What & Why? This fixes the invalid condition (to check for namespaceSelector) caused by #56
1 parent 63cf52b commit c27f9b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ spec:
2020
{{ include "servicemonitor.scrapeLimits" $monitorDefaults | indent 2 }}
2121
selector:
2222
matchLabels: {{- include "azure-metrics-exporter.selectorLabels" $root | nindent 6 }}
23-
{{- if .Values.prometheus.monitor.namespaceSelector }}
24-
namespaceSelector: {{ toYaml .Values.prometheus.monitor.namespaceSelector | nindent 4 }}
23+
{{- if $root.Values.prometheus.monitor.namespaceSelector }}
24+
namespaceSelector: {{ toYaml $root.Values.prometheus.monitor.namespaceSelector | nindent 4 }}
2525
{{- else }}
2626
namespaceSelector:
2727
matchNames:
2828
- {{ template "azure-metrics-exporter.namespace" . }}
29-
{{- end }}
29+
{{- end }}
3030
endpoints:
3131
- port: {{ $root.Values.service.portName }}
3232
scheme: {{ (default $monitorDefaults.scheme .scheme) }}

0 commit comments

Comments
 (0)