Skip to content

docs(function_list): add docs for toToml and fromToml functions#2035

Open
TerryHowe wants to merge 2 commits intohelm:mainfrom
TerryHowe:feat/add-toml-function-docs
Open

docs(function_list): add docs for toToml and fromToml functions#2035
TerryHowe wants to merge 2 commits intohelm:mainfrom
TerryHowe:feat/add-toml-function-docs

Conversation

@TerryHowe
Copy link
Copy Markdown
Contributor

Summary

This PR adds documentation for the toToml and fromToml template functions, rebased from #1455 (originally authored by @dominikmueller).

Changes from the original PR:

  • Rebased onto current main (resolves the needs rebase label on Add docs for TOML functions #1455)
  • Improved toToml example to use realistic template syntax ({{ toToml .Values.config | nindent 2 }}) instead of a bare function call
  • Added a note that toToml returns an error when nil values are present (TOML limitation)
  • Fixed fromToml file label from an awkward backtick inline code format to plain prose
  • Added a note that fromToml returns an error on invalid TOML input

Both functions shipped in Helm v3.17 (helm/helm#12026) and are in use but undocumented.

Test plan

  • Verify the rendered documentation looks correct at the toToml and fromToml sections
  • Confirm examples are accurate against Helm v3.17+ behavior

🤖 Generated with Claude Code

dominikmueller and others added 2 commits March 8, 2026 07:58
Explains how `toToml` and `fromToml` can be used in
chart templates.

Implementation detail can be seen here:
helm/helm#12026.

Signed-off-by: Dominik Müller <mail@dominikm.de>
- Use a realistic template-context example for toToml (wrapped in {{ }})
- Add note that toToml returns an error when nil values are present
- Fix fromToml file label from backtick inline code to prose
- Add note that fromToml returns an error on invalid TOML input

Co-Authored-By: Dominik Müller <mail@dominikm.de>
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants