https://pulumi.com logo
#general
Title
# general
c

cool-egg-852

09/06/2019, 7:45 PM
Is there support for files other than
values.yml
for helm? As in, can Pulumi read from
values.prod.yml
for example?
g

gorgeous-egg-16927

09/06/2019, 8:16 PM
Not as a file. The SDK is hardcoded to read from
values.yaml
, although you can provide arbitrary overrides via https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/kubernetes/helm/v2/#ChartOpts-values
c

cool-egg-852

09/06/2019, 8:16 PM
Should I file a feature request? Many charts have optional values files.
g

gorgeous-egg-16927

09/06/2019, 8:17 PM
Sure, happy to take feature requests whenever something doesn’t work as you’d expect. It’d be helpful if you could include an example as well.
c

cool-egg-852

09/06/2019, 8:17 PM
It shouldn’t be terribly difficult. Have a new
valuesFiles: string[]
and if it is empty/not set, default to
values.yml
c

creamy-potato-29402

09/06/2019, 8:38 PM
you should be able to do
JSON.parse(fs.readFileSync(...))
and simply dump the result into
values
c

cool-egg-852

09/06/2019, 8:46 PM
I’ll try that for now. Thanks!