Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
[kibana] String/YAML conditions for `.Values.{extraContainers,extraIn…
Browse files Browse the repository at this point in the history
…itContainers}` (#637)
  • Loading branch information
maxkochubey authored and jmlrt committed May 27, 2020
1 parent 6e733ae commit ef9aaa5
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion kibana/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,15 @@ spec:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
{{- if .Values.extraInitContainers }}
# Currently some extra blocks accept strings
# to continue with backwards compatibility this is being kept
# whilst also allowing for yaml to be specified too.
initContainers:
{{- if eq "string" (printf "%T" .Values.extraInitContainers) }}
{{ tpl .Values.extraInitContainers . | indent 6 }}
{{- else }}
{{ toYaml .Values.extraInitContainers | indent 6 }}
{{- end }}
{{- end }}
containers:
- name: kibana
Expand Down Expand Up @@ -143,5 +150,12 @@ spec:
subPath: {{ $path }}
{{- end -}}
{{- if .Values.extraContainers }}
# Currently some extra blocks accept strings
# to continue with backwards compatibility this is being kept
# whilst also allowing for yaml to be specified too.
{{- if eq "string" (printf "%T" .Values.extraContainers) }}
{{ tpl .Values.extraContainers . | indent 6 }}
{{- end }}
{{- else }}
{{ toYaml .Values.extraContainers | indent 6 }}
{{- end }}
{{- end }}

0 comments on commit ef9aaa5

Please sign in to comment.