How do you document a chart's values so users can use it?
IntermediateConceptChart Structure & Metadata
Answer
Comment every key in values.yaml (purpose, type, default, example), ship a README.md with a values table, and enforce types with values.schema.json. Many teams generate the README table from comments using helm-docs with # -- annotations:
# -- Number of API replicas. Ignored when autoscaling.enabled is true.
replicaCount: 2
Treat values.yaml as a public interface: renaming a key is a breaking change that deserves a major chart version.
More on Chart Structure & Metadata
What files does `helm create mychart` generate and which ones matter?BeginnerWhat are the required fields in `Chart.yaml`?BeginnerWhat is the difference between `version` and `appVersion`?BeginnerWhy should `appVersion` be quoted in `Chart.yaml`?BeginnerWhat does `type: library` vs `type: application` mean?BeginnerWhat is the `kubeVersion` field used for?Intermediate