-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: using combination of encrypted and unencrypted values.yml files #13
Comments
Hello! I haven’t tested this, but I do not think it would work currently with multiple files specified. That being said, the difference between “encrypted” and “decrypted” files is at the value level, not the file level. You could probably make a YAML file that contains all of the needed YAML and just encrypt the values as needed. It should parse fine, but I haven’t specifically tested it. If this is of interest, I will look into adding support for it. |
These two lines are what loads the YAML file to be worked on: Lines 430 to 431 in babcd2f
I think changing this to be able to know about multiple passed YAML files and then parse them sequentially would be fairly simple. |
the idea behind this is to have a hirachical configuration and to avoid to maintain same values at different places.
So, usual helm can be given muitiple values file with mutiple -f options at the command line. -e isn't yet being used by helm install | upgrade as far as I can see |
I like this idea. Once I get some time I’ll look into implementing it. |
Looping back on this, sorry it took so long. Just to clarify, (since I’ve never used multiple values files with Helm), what is the purpose of the multiple values files? I would imagine that you could combine the values into a single file and then pass that values file into the enc/dec statements? With the addition of Vault Path Templating you would be able to set the location of your global variables to one spot in Vault, and then always use that templated vault path for the global values in the values file? Would it be fine to just accept and parse multiple values files and just ignore files that don’t have any deliminators? |
We need to be able to provide few values files through -f args too. |
you described the usage of a wrapper "helm vault install ..... -f values.yaml" where values.yml is the encrypted values file.
usually helm supports multiple values files like
"helm install .... -f values1.yaml -f values2.yaml" etc.
with using the warpper vault is it still to use multiple values files?
can there be a combination of i.e. " -f vault_values.yaml -f values.yaml" where vault_values.yaml is encrypted and values.yaml containing unencrypted values?
if so, how would the regarding command to issue helm install look like then?
Cheers
Torsten
The text was updated successfully, but these errors were encountered: