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
Thanks in advance
For now I use envsubst directly without any helm plugin:
set -o allexport
source environment.sh
set +o allexport
# puts envs into a comma separated list with dollar signs
env_list=$(env | cut -d '=' -f 1 | sed 's/^/\$/;s/$/,/' | tr -d '\n' | sed 's/,$//')
# now only env variables are replaced in values template
envsubst "${env_list}" < ./values.tmpl | tee values.yaml
So far, I have been able to detect that the helm-subenv plugin doesn't see environment variables created using only the source command. For environment variables to be accessible/visible to the plugin, export has to be used.
values.yaml
environment.sh
After executing
source ./environment.sh
andhelm subenv -f values.yaml
the env variable is replaced with an empty string.My base image for execution is
ubuntu-20.4-DS1_v2-adopt-adoptium-jdk
with the following RUN cmd to install helm:The text was updated successfully, but these errors were encountered: