We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem: Adding a new key to a map with a nil value doesn't merge.
Scenario to reproduce
values1.yaml:
components: etcd-operator: version: 0.10.0
values2.yaml:
components: etcd-operator: version: 0.10.3 prometheus:
helmfile.yaml
repositories: - name: "stable" url: "https://kubernetes-charts.storage.googleapis.com" environments: default: values: - values1.yaml - values2.yaml releases: - name: "etcd-operator" chart: stable/etcd-operator {{- if .Values.components | getOrNil "etcd-operator" | getOrNil "version" }} version: {{ .Values.components | getOrNil "etcd-operator" | getOrNil "version" }} {{- end }} {{- if hasKey .Values.components "prometheus }} - name: "prometheus" chart: stable/prometheus {{- if .Values.components | getOrNil "prometheus" | getOrNil "version" }} version: {{ .Values.components | getOrNil "prometheus" | getOrNil "version" }} {{- end }} {{- end }}
Expected calculated values:
Actual calculated values:
components: etcd-operator: version: 0.10.3
Note: If prometheus is an empty map {}, it works, or if prometheus has some version set, it also works.
Helmfile version: v0.104.0
The text was updated successfully, but these errors were encountered:
@mattymo Thanks! Seems like this is resolved in mergo via darccio/mergo#133. I'll bring it to helmfile soon.
Sorry, something went wrong.
fix: merge environment values by ovewriting with empty values
2c0c805
Fixes #1154
fix: merge environment values by ovewriting with empty values (#1162)
6643a41
@mattymo This should be fixed in v0.106.2. Could you confirm if it works on your machine, too?
Successfully merging a pull request may close this issue.
Problem: Adding a new key to a map with a nil value doesn't merge.
Scenario to reproduce
values1.yaml:
values2.yaml:
helmfile.yaml
Expected calculated values:
Actual calculated values:
Note: If prometheus is an empty map {}, it works, or if prometheus has some version set, it also works.
Helmfile version: v0.104.0
The text was updated successfully, but these errors were encountered: