Skip to content

Commit

Permalink
Merge pull request #1145 from aturpin1789/add_extraInitContainer_kube…
Browse files Browse the repository at this point in the history
…rnetes

Patch position of initContainers keyword
  • Loading branch information
jertel authored Mar 28, 2023
2 parents 0ca988f + e3c12bf commit e240574
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions chart/elastalert2/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit e240574

Please sign in to comment.