Skip to content

docs: add values.yaml conventions and section annotations#128

Draft
gavinelder wants to merge 1 commit intomasterfrom
values-conventions
Draft

docs: add values.yaml conventions and section annotations#128
gavinelder wants to merge 1 commit intomasterfrom
values-conventions

Conversation

@gavinelder
Copy link
Copy Markdown
Contributor

Summary

  • Adds docs/conventions/values-yaml.md — a conventions guide for commenting and structuring chart values files, drawn from helm-docs idioms and patterns observed in Bitnami and Grafana charts.
  • Annotates every operator-facing value across the platform parent chart and all six subcharts with # @section markers (1,018 values across ~150 sections, named hierarchically with Parent: Child for sub-areas).
  • Replaces each chart's README.md.gotmpl flat chart.valuesSection helper with a custom Markdown loop over .Sections.Sections. The generated README values table is now grouped by section heading instead of one flat list.

Notes for reviewers

  • Section names diverge slightly between charts (each was annotated independently). Worth a normalisation pass for shared boilerplate (Probes, Service Account, Ingress, etc.) — happy to follow up in a separate PR.
  • The largest section is Global: Azure Image Overrides (48 values) in the platform chart. May warrant splitting into per-cloud sub-sections later.
  • The conventions doc explicitly notes that helm-docs (v1.14.2) does not support # @sectionDescription. If a section needs prose orientation, hand-write that block in the gotmpl following the SurrealDB pattern ({{- range .Values }}{{- if hasPrefix "X" .Key }}).

Test plan

  • CI pre-commit (helm-docs, CHANGELOG check, helm chart tests) all pass
  • Eyeball the generated README for one chart (e.g. charts/platform/charts/wave/README.md) and confirm sections render as expected
  • Confirm no operator-facing value lost its # -- description
  • Decide on follow-up: cross-chart section name normalisation

🤖 Generated with Claude Code

Adds a conventions doc covering helm-docs comment style, sectioning
rules, and inline-example patterns drawn from Bitnami and Grafana
chart practices.

Annotates every operator-facing value across the platform parent
chart and all six subcharts with `# @section` markers, so the
generated README tables group values by area instead of falling
into a single flat list.

Switches each chart's README.md.gotmpl from the default flat
`chart.valuesSection` helper to a custom Markdown loop over
`.Sections.Sections`. The loop renders one Markdown table per
section, keeping diffs review-friendly (vs the HTML helper) and
making sections visible in plain-text editors.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gavinelder gavinelder force-pushed the values-conventions branch from a0b7ce4 to d5e2b88 Compare May 6, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant