From 999c63c714f4f6db8e90e6a8cbe8895e31099cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bojan=20=C4=8Cekrli=C4=87?= Date: Sat, 29 May 2021 09:11:16 +0200 Subject: [PATCH] Fix: Inproper formatting of YAML when certain parameters were set --- helm/mail/templates/statefulset.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helm/mail/templates/statefulset.yaml b/helm/mail/templates/statefulset.yaml index 0d7361d..460ddf6 100644 --- a/helm/mail/templates/statefulset.yaml +++ b/helm/mail/templates/statefulset.yaml @@ -40,10 +40,10 @@ spec: {{ with .Values.imagePullSecrets }}imagePullSecrets: {{- toYaml . | nindent 8 }}{{- end }} {{ if .Values.schedulerName }}schedulerName: {{ .Values.schedulerName | quote }}{{ end }} {{ if .Values.priorityClassName }}priorityClassName: {{ .Values.priorityClassName | quote }}{{ end }} - {{- with .Values.pod.securityContext }}securityContext: {{- toYaml . | nindent 8 }}{{- end }} - {{- with .Values.nodeSelector }}nodeSelector: {{- toYaml . | nindent 8 }}{{- end }} - {{- with .Values.affinity }}affinity: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.tolerations }}tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{ with .Values.pod.securityContext }}securityContext: {{- toYaml . | nindent 8 }}{{- end }} + {{ with .Values.nodeSelector }}nodeSelector: {{- toYaml . | nindent 8 }}{{- end }} + {{ with .Values.affinity }}affinity: {{- toYaml . | nindent 8 }} {{- end }} + {{ with .Values.tolerations }}tolerations: {{- toYaml . | nindent 8 }} {{- end }} {{- if .Values.extraInitContainers }} #