From b38b707e1a25e3ea584dd4f627d07525d49f6e8b Mon Sep 17 00:00:00 2001 From: aturpin Date: Mon, 27 Mar 2023 10:18:48 +0200 Subject: [PATCH] Patch position of initContainers --- chart/elastalert2/templates/deployment.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/chart/elastalert2/templates/deployment.yaml b/chart/elastalert2/templates/deployment.yaml index 985ed619..f81bdd2e 100644 --- a/chart/elastalert2/templates/deployment.yaml +++ b/chart/elastalert2/templates/deployment.yaml @@ -42,16 +42,15 @@ spec: {{- if .Values.podSecurityContext }} securityContext: {{ toYaml .Values.podSecurityContext | indent 8 }} -{{- end }} - containers: -{{- if .Values.extraContainers }} -{{ .Values.extraContainers | toYaml | indent 6}} {{- end }} {{- if .Values.extraInitContainers }} initContainers: {{ .Values.extraInitContainers | toYaml | indent 6}} {{- end }} - + containers: +{{- if .Values.extraContainers }} +{{ .Values.extraContainers | toYaml | indent 6}} +{{- end }} - name: elastalert image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }}