Service Monitor: Indent namespace selector.
This commit is contained in:
parent
8a5841dafb
commit
fa7aeed7c0
1 changed files with 4 additions and 4 deletions
|
@ -33,13 +33,13 @@ spec:
|
||||||
{{- if .Values.controller.metrics.serviceMonitor.jobLabel }}
|
{{- if .Values.controller.metrics.serviceMonitor.jobLabel }}
|
||||||
jobLabel: {{ .Values.controller.metrics.serviceMonitor.jobLabel | quote }}
|
jobLabel: {{ .Values.controller.metrics.serviceMonitor.jobLabel | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.controller.metrics.serviceMonitor.namespaceSelector }}
|
{{- if .Values.controller.metrics.serviceMonitor.namespaceSelector }}
|
||||||
namespaceSelector: {{ toYaml .Values.controller.metrics.serviceMonitor.namespaceSelector | nindent 4 }}
|
namespaceSelector: {{ toYaml .Values.controller.metrics.serviceMonitor.namespaceSelector | nindent 4 }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
- {{ include "ingress-nginx.namespace" . }}
|
- {{ include "ingress-nginx.namespace" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.controller.metrics.serviceMonitor.targetLabels }}
|
{{- if .Values.controller.metrics.serviceMonitor.targetLabels }}
|
||||||
targetLabels:
|
targetLabels:
|
||||||
{{- range .Values.controller.metrics.serviceMonitor.targetLabels }}
|
{{- range .Values.controller.metrics.serviceMonitor.targetLabels }}
|
||||||
|
|
Loading…
Reference in a new issue