In our case vector sends logs to clickhouse and init container is used for running liquibase migrations so we need to specify DB url/creds twice: in customConfig.sinks section and in init container env. If initContainers section was templated as customConfig, it would be simple to pass parameters using --set.
The change should be simple
{{- with .Values.initContainers }}
initContainers:
{{ tpl (toYaml .) $ | indent 2 }}
{{- end }}
In our case vector sends logs to clickhouse and init container is used for running liquibase migrations so we need to specify DB url/creds twice: in customConfig.sinks section and in init container env. If initContainers section was templated as customConfig, it would be simple to pass parameters using
--set
.The change should be simple
in
_pod.tpl