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 #12637
After running the helm template command, I still have the httpGet default values for the readiness and liveness probes. I want to remove them because otherwise, Kubernetes will reject the installation of the chart. It is not possible to configure more than one readiness and liveness probes kind simultaneously.
I don't know why they are closed if the problem still persists.
Reacted by Norman, Franco Stellari, R. P. Taylor, Stefan Kuksenko, Michael Meier, Johannes Bohn, Graham White, David Mihalcik, Eugene P, Takumi Sue and 45 more
I just checked that the issue is still present in the just released Helm version.BuildInfo{Version:"v3.13.3", GitCommit:"c8b948945e52abba22ff885446a1486cb5fd3474", GitTreeState:"clean", GoVersion:"go1.20.11"}
I have this issue with these helm version embedded in my argocd-repo-server :
version.BuildInfo{Version:"v3.11.2", GitCommit:"5307b09986704410394ccdae24e40933db4a9a0b", GitTreeState:"", GoVersion:"go1.19.13"}
ersion.BuildInfo{Version:"v3.12.0", GitCommit:"c9f554d75773799f72ceef38c51210f1842a1dea", GitTreeState:"clean", GoVersion:"go1.20.4"}
This is a pretty significant blocker for us being able to use helm to deploy our app in production like we planned. Will this be fixed in 3.14.3, the next release on March 13, or at least prioritized for a upcoming release?
Unfortunately, devs don't seem to realize that this bug forces everybody who is affected by this bug to fork the subcharts to fix such a "small" problem. It already happens way too often that one is forced to fork upstream charts, because of bad choices or limitations in the templates, however it would be great if this bug wasn't yet another reason that forces you to fork.
In some cases you may be in luck and you may be able to workaround the problem with helm-x (helm + kustomize), or helmfile (which integrates helm-x), but that's even more tooling. These are also not an option when using ArgoCD or Rancher, just to name two.
Reacted by MohamadAli, Philipp Dallig, Omega, Blake Irvin, netanel, Kirill Buev, Laurent Hoss, Süleyman Fazıl Yeşil and Harvey Han
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
This is also still a duplicate issue, would probably be more helpful to close/consolidate at this point.
There is a potential fix #12879 but it will require thorough detailed testing.
This issue is however not there just from v3.13.*... I can reproduce this also with v3.9.1 for example. If I override nested values in global section of a local chart without subcharts it works fine. If I have subcharts and try to set value to null it does not apply. Only empty string can be assigned but that is of no use. This is a real pain.
Just to note, this continues to have a slight issue after 3.17.1 - e.g. if your existing deployment has no limits and you include limits: cpu: null, requests: cpu: 1 helm will complain that the request is greater than a limit of 0. If you remove the explicit null limits it will resolve correctly.
Reacted by Diego Rodriguez, Robin Hermann and Jans Rautenbach
Activity
francostellari commentedon Dec 13, 2023
I observed the same issue in Helm
v3.13.2My
Chart.yamlcontains:My parent
values.yamlcontains:Yet the yaml generated with a
--dry-runstill contains thefsGroup: 1001:and
pdettori commentedon Dec 13, 2023
Same problem here. Cannot remove keys seting to null a subchart value.
francostellari commentedon Dec 13, 2023
I just checked that the issue is still present in the just released Helm
version.BuildInfo{Version:"v3.13.3", GitCommit:"c8b948945e52abba22ff885446a1486cb5fd3474", GitTreeState:"clean", GoVersion:"go1.20.11"}hamelg commentedon Dec 14, 2023
I have this issue with these helm version embedded in my argocd-repo-server :
version.BuildInfo{Version:"v3.11.2", GitCommit:"5307b09986704410394ccdae24e40933db4a9a0b", GitTreeState:"", GoVersion:"go1.19.13"}
ersion.BuildInfo{Version:"v3.12.0", GitCommit:"c9f554d75773799f72ceef38c51210f1842a1dea", GitTreeState:"clean", GoVersion:"go1.20.4"}
rptaylor commentedon Dec 14, 2023
This has been reported many times (e.g. #12488), but apparently not acknowledged or noticed as a bug yet. I assume you're using --values or -f.
Although this issue may be yet another duplicate of #12488 I would recommend keeping it open so hopefully someone will notice this problem.
sabre1041 commentedon Dec 17, 2023
@rptaylor would like to note that it is indeed a valid outstanding issue
Reamer commentedon Dec 20, 2023
Definitely a big step backwards. Thank you for your detailed bug report. I have downgraded my Argo CD version because I need this functionality.
rptaylor commentedon Dec 22, 2023
As noted in the linked issue a workaround is to overwrite the default values.yml file instead of specifying a different location with --values or -f.
lplazas commentedon Feb 12, 2024
What version did you downgrade to?
Reamer commentedon Feb 13, 2024
At the moment I am on https://github.com/argoproj/argo-cd/releases/tag/v2.9.1
https://github.com/argoproj/argo-cd/releases/tag/v2.9.2 has updated helm in MR argoproj/argo-cd#16344.
Hoid commentedon Feb 28, 2024
This is a pretty significant blocker for us being able to use helm to deploy our app in production like we planned. Will this be fixed in 3.14.3, the next release on March 13, or at least prioritized for a upcoming release?
pisto commentedon Feb 28, 2024
Unfortunately, devs don't seem to realize that this bug forces everybody who is affected by this bug to fork the subcharts to fix such a "small" problem. It already happens way too often that one is forced to fork upstream charts, because of bad choices or limitations in the templates, however it would be great if this bug wasn't yet another reason that forces you to fork.
In some cases you may be in luck and you may be able to workaround the problem with helm-x (helm + kustomize), or helmfile (which integrates helm-x), but that's even more tooling. These are also not an option when using ArgoCD or Rancher, just to name two.
atmask commentedon Mar 23, 2024
Can confirm I encountered this on helm 3.13. Had to downgrade to work around
zsolt-marta-bitrise commentedon Apr 29, 2024
Seeing something similar here #12991
Works if we set the dependent object value to empty string
""instead ofnullbtw6 remaining items
MCCS-2216: workaround helm key unsetting bug
github-actions commentedon Sep 6, 2024
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
gysel commentedon Sep 10, 2024
still relevant to us...
rptaylor commentedon Sep 10, 2024
This is also still a duplicate issue, would probably be more helpful to close/consolidate at this point.
There is a potential fix #12879 but it will require thorough detailed testing.
petermicuch commentedon Sep 19, 2024
This issue is however not there just from v3.13.*... I can reproduce this also with v3.9.1 for example. If I override nested values in
globalsection of a local chart without subcharts it works fine. If I have subcharts and try to set value tonullit does not apply. Only empty string can be assigned but that is of no use. This is a real pain.pierluigilenoci commentedon Jan 24, 2025
Can #12879 or #13654 solve this?
scottrigby commentedon Jan 27, 2025
Yes, these PRs fix the issue, with unit tests to prevent future breakage, and have been merged 👏 This fix is scheduled to be in Helm 3.17.1.
graft commentedon Mar 18, 2025
Just to note, this continues to have a slight issue after 3.17.1 - e.g. if your existing deployment has no limits and you include
limits: cpu: null, requests: cpu: 1helm will complain that the request is greater than a limit of 0. If you remove the explicit null limits it will resolve correctly.fix: make affinity actually configurable
fix: make affinity actually configurable
fix: make affinity actually configurable
fix: make affinity actually configurable