Encycode
Encycode

Reputation: 783

helm pass all values files from specific folder

I have a folder containing multiple values.yaml files and I would like to pass all the yaml files in that folder as an argument to helm install.

It is possible to use like helm install example . -f values/values1.yaml -f values/values2.yaml

But there are more than 10 files in values folder Is it possible to simply pass a folder as an argument

I already tried helm install example . -f values/* And this does not work.

Upvotes: 4

Views: 6500

Answers (1)

Philip Welz
Philip Welz

Reputation: 2807

This is not possible as -f expects a file or URL = specify values in a YAML file or a URL (can specify multiple) and helm does not know a command to use a directory.

Maybe you should reduce your values.yaml files to have a base value file and then one environment specific values file:

helm install example . -f values.yaml -f env/values_dev.yaml

Upvotes: 3

Related Questions