Reloader icon indicating copy to clipboard operation
Reloader copied to clipboard

[BUG] `null` doesn't remove default value of `deployment.securityContext.runAsUser`

Open pypp opened this issue 1 year ago • 0 comments
trafficstars

Describe the bug Can't override the default value of deployment.securityContext.runAsUser with null using sub-chart.

To Reproduce

# Chart.yaml

apiVersion: v2
name: reloader-subchart
description: A Helm chart for reloader
type: application
version: 1.0.0
appVersion: "1.0.0"
# values.yaml

reloader:
  reloader:
    isOpenshift: true
    deployment:
      securityContext:
        runAsUser: null

run

helm template -f values/values.yaml .

Expected behavior That the returned chart will override the default value of deployment.securityContext.runAsUser.

Environment

  • Operator Version: 1.0.97
  • Kubernetes/OpenShift Version: N/A
  • Helm Version: v3.11.1+6.el8

Additional context This is a known bug in the newer versions of Helm, helm/helm#12637

pypp avatar Jun 23 '24 10:06 pypp