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

Commit df38964

Browse files
committed
add backwards compatibility for extraContainers
1 parent 353a26c commit df38964

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

filebeat/templates/daemonset.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,5 +167,12 @@ spec:
167167
{{ toYaml .Values.extraVolumeMounts | indent 8 }}
168168
{{- end }}
169169
{{- if .Values.extraContainers }}
170+
# Currently some extra blocks accept strings
171+
# to continue with backwards compatibility this is being kept
172+
# whilst also allowing for yaml to be specified too.
173+
{{- if eq "string" (printf "%T" .Values.extraContainers) }}
170174
{{ tpl .Values.extraContainers . | indent 6 }}
175+
{{- else }}
176+
{{ toYaml .Values.extraContainers | indent 6 }}
177+
{{- end }}
171178
{{- end }}

0 commit comments

Comments
 (0)