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
Nested null
values do not remove keys from sub-charts
#12637
Comments
I observed the same issue in Helm
My dependencies:
- name: postgresql
version: "13.1.5"
repository: "oci://registry-1.docker.io/bitnamicharts" My parent postgresql:
primary:
extendedConfiguration: "max_connections=1000"
priorityClassName: system-node-critical
podSecurityContext:
fsGroup: null
seccompProfile:
type: RuntimeDefault
containerSecurityContext:
runAsUser: null
allowPrivilegeEscalation: false
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
capabilities:
drop: [ "ALL" ]
volumePermissions:
enabled: false
shmVolume:
enabled: false Yet the yaml generated with a securityContext:
fsGroup: 1001 # <<<<<<<<<<
seccompProfile:
type: RuntimeDefault and runAsGroup: 0
runAsNonRoot: true
runAsUser: 1001 # <<<<<<<<
seccompProfile:
type: RuntimeDefault |
Same problem here. Cannot remove keys seting to null a subchart value. |
I just checked that the issue is still present in the just released Helm |
I have this issue with these helm version embedded in my argocd-repo-server : |
@rptaylor would like to note that it is indeed a valid outstanding issue |
Definitely a big step backwards. Thank you for your detailed bug report. I have downgraded my Argo CD version because I need this functionality. |
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. |
What version did you downgrade to? |
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. |
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. |
Can confirm I encountered this on helm 3.13. Had to downgrade to work around |
Seeing something similar here #12991 Works if we set the dependent object value to empty string |
Nested
null
values do not remove keys from sub-charts.I have the following setting in a sub-chart:
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.Output of
helm version
:Output of
kubectl version
:The following issues are related:
null
values do not remove keys from sub-charts #9136null
values don't remove keys as expected #5184I don't know why they are closed if the problem still persists.
The text was updated successfully, but these errors were encountered: