Skip to content

Can't override value in subchart #12522

@o4rz3l

Description

@o4rz3l

Output of helm version: 3.13.1

Output of kubectl version: v1.25.2

Hi, based on the changelog and on some issues (e.g. #11440), it should be possible, to remove a value from a subchart by using value: null. Unfortunately, this does not work in my case.

Here are some some easy steps to reproduce my issue:
1 helm create umbrella-chart
2. remove all templates and the clear values.yaml
3. add the prometheus dependency to the Chart.yaml

dependencies:
- name: prometheus
  version: 25.2.0
  repository: https://prometheus-community.github.io/helm-charts
  1. helm dep update
  2. Add this to values.yaml
prometheus:
  server:
    securityContext: null
  1. Run helm template foo -s charts/prometheus/templates/deploy.yaml . -f values.yaml

Expected Result
The block

      securityContext:
        fsGroup: 65534
        runAsGroup: 65534
        runAsNonRoot: true
        runAsUser: 65534

should not be in the deploy.yaml

Actual Result
The block securityContext with it's subkeys is in the deploy.yaml. No way to remove it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions