-
Notifications
You must be signed in to change notification settings - Fork 203
Multiple valuesFiles in HelmChart source #291
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
Comments
Happy to accept a contribution that adds this feature. To prevent and/or avoid backward compatibility issues, it would likely be best to add a new https://github.com/fluxcd/pkg/blob/main/runtime/transform/transform.go#L24 helper is available for merging the values. |
Would be happy to take this one |
Hey @JLenssen what is the likelihood that you would be working on this soon? Our team actually has an extremely hacky version of this that mostly works in our staging environment (so we can try out Flux). If this is something you might not be able to get to soon would you mind relinquishing it to us? If not please let me know if I can help! 😊 |
We would also love to see this feature implemented as it prevents us from migrating to v2. I don't have much experience with Go, but I would be happy to help. |
Feel free to take a look at the PR at #305 @nniikkoollaaii. There are a few outstanding comments there you may be able to assist with. If not, I'm hoping to get back to it this weekend (just very busy with work-work) 😁 |
@JLenssen @arbourd As per my understanding, those values files must be stored in the same place as the Helm Chart. The main reason for me would be to keep the different values files per cluster and not along with the Chart. I for example would like to keep different values files in 3 different repositories (in the same repo as the cluster's directory is). The base directory would contain a default values.yaml file. Then I'd override those values per each environment (with a values.yaml file stored in an environment directory) and lastly, override with the values.yaml in the cluster's directory. |
You can overwrite the cluster specific values using a |
@hiddeco that's a good advise, but what about the environment values? I'd also leave these per environment values in a different directory. |
I've been playing around with your solution @hiddeco and I ended up doing all this:
The final result of this attempt is that every time flux reconciles the structure (kustomize + helmrelease), a different CM will be picked up. And since it only takes 1 CM, values are always different, therefore the Chart is constantly changing the deployed resources + configurations.
I've been thinking on any other alternative and nothing pops up in my head. For me, the only way to move forward would be to allow the user to pass multiple values files to the argument |
Similar to the create HelmRelease command in Flux, it would be nice if the HelmRelease/HelmChart CRD could handle more than one values file from a single HelmChart that is sourced by a GitRepository. For example:
The text was updated successfully, but these errors were encountered: