Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support templating for initContainers #392

Open
dslynko-cma-se opened this issue Jun 3, 2024 · 0 comments
Open

Support templating for initContainers #392

dslynko-cma-se opened this issue Jun 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dslynko-cma-se
Copy link

dslynko-cma-se commented Jun 3, 2024

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 _pod.tpl

@jszwedko jszwedko added the enhancement New feature or request label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants