From fa7aeed7c05d37d18693b79ddb8937a5acfea5c0 Mon Sep 17 00:00:00 2001 From: Marco Ebert Date: Tue, 29 Oct 2024 22:19:59 +0100 Subject: [PATCH] Service Monitor: Indent namespace selector. --- .../templates/controller-servicemonitor.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/ingress-nginx/templates/controller-servicemonitor.yaml b/charts/ingress-nginx/templates/controller-servicemonitor.yaml index 2314c65fe..ff2abc515 100644 --- a/charts/ingress-nginx/templates/controller-servicemonitor.yaml +++ b/charts/ingress-nginx/templates/controller-servicemonitor.yaml @@ -33,13 +33,13 @@ spec: {{- if .Values.controller.metrics.serviceMonitor.jobLabel }} jobLabel: {{ .Values.controller.metrics.serviceMonitor.jobLabel | quote }} {{- end }} -{{- if .Values.controller.metrics.serviceMonitor.namespaceSelector }} + {{- if .Values.controller.metrics.serviceMonitor.namespaceSelector }} namespaceSelector: {{ toYaml .Values.controller.metrics.serviceMonitor.namespaceSelector | nindent 4 }} -{{- else }} + {{- else }} namespaceSelector: matchNames: - - {{ include "ingress-nginx.namespace" . }} -{{- end }} + - {{ include "ingress-nginx.namespace" . }} + {{- end }} {{- if .Values.controller.metrics.serviceMonitor.targetLabels }} targetLabels: {{- range .Values.controller.metrics.serviceMonitor.targetLabels }}