Skip to content

docs: Add example for using null in values files to override parent chart defaults#2045

Draft
promptless-for-oss wants to merge 1 commit intohelm:mainfrom
Promptless:promptless/document-null-values-file-override
Draft

docs: Add example for using null in values files to override parent chart defaults#2045
promptless-for-oss wants to merge 1 commit intohelm:mainfrom
Promptless:promptless/document-null-values-file-override

Conversation

@promptless-for-oss
Copy link
Copy Markdown
Contributor

Open this suggestion in Promptless to view citations and reasoning process

Documents how to use null values in override files passed via -f/--values to remove parent chart defaults for subcharts. The existing "Deleting a default key" section only showed the --set approach; this adds a complementary values file example.

Trigger Events

helm/helm PR #31946: fix: allow null values from --values to override parent chart values

Promptless Research (7 files, 1 GitHub PR)

  • Reviewed helm/helm#31946
  • Viewed .long_term_context/product_knowledge/product_overview.md
  • Viewed .long_term_context/doc_workflow/client_instructions.md
  • Viewed .long_term_context/style/client_style_guide.md
  • Viewed docs/chart_template_guide/subcharts_and_globals.md
  • Viewed docs/chart_template_guide/values_files.mdx
  • Viewed versioned_docs/version-3/chart_template_guide/values_files.mdx
  • Viewed versioned_docs/version-3/chart_template_guide/values_files.md

Agent Response

I've reviewed the PR and created a documentation suggestion.

Summary

PR reviewed: helm/helm#31946 - fix: allow null values from --values to override parent chart values

This bug fix restores the ability for null values in override files (passed via -f/--values) to remove parent chart defaults for subcharts—behavior that was expected since Helm 3.17.0.

Documentation Update

The existing documentation in the "Deleting a default key" section of the Values Files guide only showed how to use null with the --set flag. I've added a complementary example showing the same technique using a values file, which is the exact use case this bug fix addresses.

Files updated:

  • docs/chart_template_guide/values_files.mdx (current docs)
  • versioned_docs/version-3/chart_template_guide/values_files.md (v3 docs)

New content added:

# override-values.yaml
mysubchart:
  unwantedKey: null
helm install myrelease ./mychart -f override-values.yaml

This helps users understand they can use null in values files to remove subchart defaults, not just via --set.


Tip: Sort by Shortest Review in the Dashboard to find quick wins ⚡

…efaults

Signed-off-by: promptless-for-oss <promptless-for-oss@users.noreply.github.com>
helm install stable/drupal --set image=my-registry/drupal:0.1.0 --set livenessProbe.exec.command=[cat,docroot/CHANGELOG.txt] --set livenessProbe.httpGet=null
```

This same approach works with values files passed via `-f` or `--values`. To remove
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Citation: Bug fix PR for null values in --values files. The fix in pkg/chart/common/util/coalesce.go restores the ability for null in override files to remove parent chart defaults, which was the expected behavior since Helm 3.17.0.
View source

@TerryHowe TerryHowe added awaiting release Feature needs to be merged and released before docs update hold Do not merge yet labels Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting release Feature needs to be merged and released before docs update hold Do not merge yet size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants