How to use script variable in Helm chart

Problem Statement

I have a script that generates some env vars for my helm chart… I want to set these values to my Helm chart while deploying (K8s with Helm).


For the above use-case the best way to achieve will be to use Script Output Variables as part of the shell script which generates the Env variables

and then use this output variable in form of expression ( <+steps.Shell_Script.output.outputVariables.myvar> ) as part of your Values.yml.

1 Like