Another question, I know in `helm` we can ovveride...
# general
b
Another question, I know in
helm
we can ovveride a variable value in the command line. It’s their a way to do this in pulumi. I got a stack by branch… i want the version of the main app to be the SHA version… in helm we are doing something like
--set-string image.tag ${SHA}
.. what is the best way to do something like this in pulumi?
b
you can pass in a transformation function
b
@better-rainbow-14549 what do you mean
m
@big-potato-91793 Just use the
values
parameter to
ChartOpts
https://pulumi.io/reference/pkg/nodejs/@pulumi/kubernetes/helm/v2/#ChartOpts i.e.
Copy code
...
values : {
  image: { tag: '1.0.0' }
}
...
b
i will not used a chart….
m
I see, mis read your question. Most straight forward way I can think of would be an environment variable.
IMAGE_TAG=1.0.0 pulumi up
Then interpolate based on that environment variable in code