Skip to content

Conversation

@sd109
Copy link
Contributor

@sd109 sd109 commented Dec 9, 2025

The values files in these charts are growing increasingly complex and it's easy to accidentally miss some indentation or make a typo when setting Helm values. Helm includes built-in support for validating a values file format against a provided JSON schema which can help avoid trivial config errors.

This change adds a values schema generated using the helm-schema plugin and adds appropriate @schema annotations to the values files to constrain the schema for config options which cannot be automatically inferred from their default values.

@sd109 sd109 force-pushed the feat/helm-values-schema branch from 111c165 to d3e83a0 Compare December 9, 2025 10:03
@sd109 sd109 marked this pull request as ready for review December 9, 2025 11:25
@sd109 sd109 requested a review from a team as a code owner December 9, 2025 11:25
@sd109 sd109 changed the title WIP: Add Helm values schema Add Helm values schema to all charts Dec 9, 2025
Schemas generated using https://github.com/dadav/helm-schema by
running the following commands from the repo root:
```
helm plugin install https://github.com/dadav/helm-schema
helm schema
```
and then refining the generated schema using @Schema comments
in the relevant values.yaml files.
Moving test values into ci/ folder allows ct lint command to use the
same values. Linting also validates against the new JSON schema and
therefore needs fields such as kubernetesVersion to be non-null.
@sd109 sd109 force-pushed the feat/helm-values-schema branch from 164f73b to c4582e4 Compare December 11, 2025 11:09
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.

2 participants