-
Notifications
You must be signed in to change notification settings - Fork 566
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
Values merge with nil and map doesn't work #1150
Comments
@mattymo Good catch! Unfortunately, we can't easily avoid this due to the library which Helmfile uses under the hood to merge maps. The issue is darccio/mergo#123, which prevents Helmfile from overwriting The workaround would be to modify your
|
@mumoshu Thanks for the quick response. I really hope someone fixes it in the library soon. This can't be an impossible task |
@mattymo I was reading the mergo code and it turned out that bumping mergo fixes this specific issue for me. Could you give it a try with Helmfile v0.104.0 which has just been released? |
@mumoshu I confirmed this bug is fixed. I uncovered yet another (similar) one and I'll open a separate issue. |
Problem: Map should always win over nil in a values merge scenario.
Scenario to reproduce
values1.yaml:
values2.yaml:
helmfile.yaml
The result is that the second values file doesn't properly merge if the first one contains any nil values. In the resulting values set, .Values.components["etcd-operator"] is nil.
Helmfile version:
helmfile version v0.102.0
The text was updated successfully, but these errors were encountered: