Is there support for files other than `values.yml`...
# general
c
Is there support for files other than
values.yml
for helm? As in, can Pulumi read from
values.prod.yml
for example?
g
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
Should I file a feature request? Many charts have optional values files.
g
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
It shouldn’t be terribly difficult. Have a new
valuesFiles: string[]
and if it is empty/not set, default to
values.yml
c
you should be able to do
JSON.parse(fs.readFileSync(...))
and simply dump the result into
values
c
I’ll try that for now. Thanks!