From 20500379d7efdbf2a08ea6d0e1f32a8fa9c99984 Mon Sep 17 00:00:00 2001 From: allanhung Date: Thu, 16 Nov 2023 15:38:43 +0800 Subject: [PATCH] [prometheus-blackbox-exporter] fix issue when set extra containers (#3850) * fix issue when set extra containers Signed-off-by: Allan Hung * consistent indentation Signed-off-by: Allan Hung --------- Signed-off-by: Allan Hung Signed-off-by: allanhung Co-authored-by: MH Signed-off-by: Sacha --- .../prometheus-blackbox-exporter/templates/_helpers.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/prometheus-blackbox-exporter/templates/_helpers.tpl b/charts/prometheus-blackbox-exporter/templates/_helpers.tpl index 760bf48bd469..3eed0bd00d5d 100644 --- a/charts/prometheus-blackbox-exporter/templates/_helpers.tpl +++ b/charts/prometheus-blackbox-exporter/templates/_helpers.tpl @@ -110,7 +110,7 @@ automountServiceAccountToken: {{ .Values.automountServiceAccountToken }} serviceAccountName: {{ template "prometheus-blackbox-exporter.serviceAccountName" . }} {{- with .Values.topologySpreadConstraints }} topologySpreadConstraints: - {{- toYaml . | nindent 2 }} +{{ toYaml . }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: @@ -122,7 +122,7 @@ affinity: {{- end }} {{- with .Values.tolerations }} tolerations: - {{- toYaml . | nindent 2 }} +{{ toYaml . }} {{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -155,10 +155,10 @@ sysctls: {{- end }} {{- with .Values.extraInitContainers }} initContainers: - {{- toYaml . | indent 2 }} +{{ toYaml . }} {{- end }} containers: -{{- with .Values.extraContainers }} +{{ with .Values.extraContainers }} {{- toYaml . }} {{- end }} - name: blackbox-exporter