You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nested null values do not remove keys from sub-charts #9136
#2648 and #5184 allow for deletion of keys by setting null values in a values.yaml file. However it doesn't work for removing nested values in sub-charts, e.g.:
Reacted by Diego Rodriguez, dcharbonnier, Ward Loos, John Kost, rvgl, Antoine F., Julien Mailleret, Michael Haselton, Alexander Kholodov, bakayolo and 74 more
I believe there are 2 similar issues preventing this from working, modifiying the chart object makes calls to CoalesceValues non-idempotent:
See here - The call to dependencies.processImportValues is overwriting the null values in the subchart so subsequent calls to CoalesceValues do not remove the default key.
See here - The reference to the value is copied directly to the values map, subsequent modifications of this object are applied to the chart, so subsequent calls to CoalesceValues do not remove the default key
@mattfarina In case you need an easy reproducible case for this bug to be labeled as confirmed:
I'm having the same issue with the Bitnami Redis chart when trying to set the podDisruptionBudget.maxUnavailable key. For this to work you need to be able to unset the minAvailable key as it's otherwise not a valid PDB spec.
@joejulian - I believe #11440 should fix this bug - looks like an bug where null keys are preemptively removed before subcharts are processed which causes the subcharts to merge their keys back into the parent chart again.
Reacted by Jiri Tyr, Antoine Cotten, Igor Zamyslov, Joe Julian, Nicolas Levée, Jonathan Piron and Jonathan Karlsson
Activity
Chili-Man commentedon Dec 17, 2020
I've been running into this same exact issue with Helm version 3.2, 3.3, and 3.4 as well. I haven't found a good workaround to this issue yet;
elliotkennedy commentedon Dec 17, 2020
I believe there are 2 similar issues preventing this from working, modifiying the chart object makes calls to CoalesceValues non-idempotent:
See here - The call to dependencies.processImportValues is overwriting the null values in the subchart so subsequent calls to CoalesceValues do not remove the default key.
See here - The reference to the value is copied directly to the values map, subsequent modifications of this object are applied to the chart, so subsequent calls to CoalesceValues do not remove the default key
[helm#9136] - Deep copy chart values before coalescing to prevent mut…
[helm#9136] - processDependencyImportValues should only apply import …
[helm#9136] - Deep copy chart values before coalescing to prevent mut…
[helm#9136] - processDependencyImportValues should only apply import …
[helm#9136] - Deep copy chart values before coalescing to prevent mut…
[helm#9136] - processDependencyImportValues should only apply import …
[helm#9136] - Fix variable name to explicitly state chart values
[helm#9136] - Fix variable name to explicitly state chart values
wrdls commentedon Jan 11, 2021
@mattfarina In case you need an easy reproducible case for this bug to be labeled as
confirmed:I'm having the same issue with the Bitnami Redis chart when trying to set the
podDisruptionBudget.maxUnavailablekey. For this to work you need to be able to unset theminAvailablekey as it's otherwise not a valid PDB spec.So with a parent chart like this:
Chart.yaml
values.yaml
Output:
Versions used:
% helm version version.BuildInfo{Version:"v3.4.2", GitCommit:"23dd3af5e19a02d4f4baa5b2f242645a1a3af629", GitTreeState:"clean", GoVersion:"go1.15.6"} % kubectl version Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.4", GitCommit:"d360454c9bcd1634cf4cc52d1867af5491dc9c5f", GitTreeState:"archive", BuildDate:"2020-11-25T13:19:56Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.15-gke.6000", GitCommit:"b02f5ea6726390a4b19d06fa9022981750af2bbc", GitTreeState:"clean", BuildDate:"2020-11-18T09:16:22Z", GoVersion:"go1.13.15b4", Compiler:"gc", Platform:"linux/amd64"}[helm#9136] - Deep copy chart values before coalescing to prevent mut…
[helm#9136] - processDependencyImportValues should only apply import …
63 remaining items
LoicGombeaud commentedon Oct 6, 2022
I just ran into this issue, and would very much appreciate a fix.
helm#9136
Fixes helm#9136
jamoflaw commentedon Oct 14, 2022
@joejulian - I believe #11440 should fix this bug - looks like an bug where null keys are preemptively removed before subcharts are processed which causes the subcharts to merge their keys back into the parent chart again.
igorzamyslov commentedon Oct 14, 2022
It seems to be a duplicate of #9027
jamoflaw commentedon Oct 14, 2022
Yeah I'd agree - looks like the behaviour I replicated in that PR, it should resolve that issue too
joejulian commentedon Oct 14, 2022
Closing this one. Let's continue to track this in #9027. Thanks!
rodrigoechaide commentedon Dec 13, 2023
I have created a new issue because this problem persists in the latest version of Kubernetes.
feat(api): add opt-in httpGet probes with banjo-utils defaults
feat(scheduling): add nodeSelector/tolerations/affinity/topologySprea…
fix(chart): withhold root affinity from hook pods, allow clearing
Prometheus: replace default scrapeConfigs to fix duplicate scrape job
Prometheus: replace default scrapeConfigs to fix duplicate scrape job
Prometheus: replace default scrapeConfigs to fix duplicate scrape job