Skip to content

Conversation

@joebowbeer
Copy link
Contributor

@joebowbeer joebowbeer commented Nov 12, 2025

Fixes #1352

Changes:

  • Remove some of the confusing preamble about what Go does
  • Consolidate the include and required descriptions

@joebowbeer joebowbeer changed the title Update charts_tips_and_tricks.md Clarify missingkey documentation Nov 12, 2025
@TerryHowe TerryHowe requested a review from Copilot November 12, 2025 14:02
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR clarifies the documentation for missingkey and reorganizes the descriptions of the include and required template functions to improve readability and reduce confusion.

  • Simplified the explanation of Go's missingkey behavior by removing overly technical details about template.Options
  • Consolidated the include and required function descriptions into subsections under the template functions introduction
  • Reorganized content to present both functions earlier in the document with more structured formatting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@TerryHowe TerryHowe left a comment

Choose a reason for hiding this comment

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

/lgtm

```

The above includes a template called `toYaml`, passes it `$value`, and then
passes the output of that template to the `indent` function.
Copy link
Member

Choose a reason for hiding this comment

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

In general I think folks prefer nindent over indent now, for readability reasons.

Copy link
Member

Choose a reason for hiding this comment

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

But this can be updated in a follow-up PR. I realize you didn't really change this, just moved it higher up in the doc. In a follow-up PR, I would like to see us check all of the docs pages for indent examples and update them to nindent equivalents.

Copy link
Member

@scottrigby scottrigby left a comment

Choose a reason for hiding this comment

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

It's interesting that the missingkey docs previously mixed info on how to work with chart templating and also how to work with gotemplate using Go. The part you removed is about how to use this with Go, which I think you're right doesn't make sense here.

@scottrigby scottrigby requested a review from joejulian November 27, 2025 08:36
Copy link

@joejulian joejulian left a comment

Choose a reason for hiding this comment

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

This is much more readable, thanks!

@TerryHowe TerryHowe merged commit 1423e6c into helm:main Nov 27, 2025
3 checks passed
@joebowbeer joebowbeer deleted the patch-2 branch November 28, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update or remove missingkey documentation

4 participants