Validating Values
Users keep passing replicas: "three" and get confusing errors from Kubernetes. How can the chart reject bad values with a clear message?
replicas: "three"
Choose one answer
Add comments to values.yaml explaining the types.
values.yaml
Wrap every value with toString in the templates.
toString
Set strict: true in Chart.yaml so Helm checks every value's type.
strict: true
Chart.yaml
Ship a values.schema.json with the chart.
values.schema.json