You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kubetpl should be able to interpolate environment variables that appear in the source template, similarly to what envsubst does, possibly with an option like --with-env.
My use case is that I'm collecting secrets from AWS SecretsManager and storing them in environment variables in a Makefile. I would like to be able to write something like this:
I'm also finding this could be beneficial in CI pipelines where information is provided as environment variables.
Say for example there is a variable $BRANCH that is set within your pipeline. Sure there are workarounds like:
a) Redeclare and pass in using -s BRANCH=$BRANCH. Not bad but gets messy as you add more vars.
b) Add a step in the pipeline to first render a file (perhaps using envsubst) and pass this to kubetpl using -i.
Neither is really ideal. It would be great to have an option to interpolate environment vars within the template file itself, and possibly for any -i files as well.
kubetpl
should be able to interpolate environment variables that appear in the source template, similarly to what envsubst does, possibly with an option like--with-env
.My use case is that I'm collecting secrets from AWS SecretsManager and storing them in environment variables in a Makefile. I would like to be able to write something like this:
Values obtained this way would probably have the lowest priority, after
-s
and-i
values.The text was updated successfully, but these errors were encountered: