Skip to content

CICD-162 · Check chart values against JSON schema ​

Encyclopedia · Helm release engineering · All snippets

Previous · CICD-161 · Next · CICD-163

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites Helm 3, reviewed values and staging cluster when applying charts.
  • Platforms kubernetes, local-lab.

2. Copy the snippet ​

bash
helm lint ./helm/web -f tests/valid-values.yaml
if helm lint ./helm/web -f tests/invalid-values.yaml; then exit 1; fi

3. How it works ​

Lint checks the chart structure and supplied values. Admission and rollout tests still happen later.

4. Verify the result ​

Add values.schema.json and design the invalid fixture to prove it is enforced.

Validation syntax-validated (Bash parse). Status definitions.