File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
kubernetes-ingress/templates Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -276,9 +276,13 @@ spec:
276276 {{- else if gt (len .Values.controller.extraVolumes) 0 }}
277277{{ toYaml .Values.controller.extraVolumes | indent 8 }}
278278 {{- end }}
279- {{- with .Values.controller.initContainers }}
279+ {{- if .Values.controller.initContainers }}
280280 initContainers :
281- {{- toYaml . | nindent 8 }}
281+ {{- if eq "string" (printf "%T" .Values.controller.initContainers) }}
282+ {{ tpl .Values.controller.initContainers . | indent 8 }}
283+ {{- else }}
284+ {{ toYaml .Values.controller.initContainers | indent 8 }}
285+ {{- end }}
282286 {{- end }}
283287 {{- with .Values.controller.nodeSelector }}
284288 nodeSelector :
Original file line number Diff line number Diff line change @@ -269,9 +269,13 @@ spec:
269269 {{- else if gt (len .Values.controller.extraVolumes) 0 }}
270270{{ toYaml .Values.controller.extraVolumes | indent 8 }}
271271 {{- end }}
272- {{- with .Values.controller.initContainers }}
272+ {{- if .Values.controller.initContainers }}
273273 initContainers :
274- {{- toYaml . | nindent 8 }}
274+ {{- if eq "string" (printf "%T" .Values.controller.initContainers) }}
275+ {{ tpl .Values.controller.initContainers . | indent 8 }}
276+ {{- else }}
277+ {{ toYaml .Values.controller.initContainers | indent 8 }}
278+ {{- end }}
275279 {{- end }}
276280 {{- with .Values.controller.nodeSelector }}
277281 nodeSelector :
Original file line number Diff line number Diff line change @@ -260,9 +260,13 @@ spec:
260260 {{- else if gt (len .Values.controller.extraVolumes) 0 }}
261261{{ toYaml .Values.controller.extraVolumes | indent 8 }}
262262 {{- end }}
263- {{- with .Values.controller.initContainers }}
263+ {{- if .Values.controller.initContainers }}
264264 initContainers :
265- {{- toYaml . | nindent 8 }}
265+ {{- if eq "string" (printf "%T" .Values.controller.initContainers) }}
266+ {{ tpl .Values.controller.initContainers . | indent 8 }}
267+ {{- else }}
268+ {{ toYaml .Values.controller.initContainers | indent 8 }}
269+ {{- end }}
266270 {{- end }}
267271 {{- with .Values.controller.nodeSelector }}
268272 nodeSelector :
You can’t perform that action at this time.
0 commit comments