Documentation#
helm-schema generates a JSON Schema for a Helm chart’s values.yaml by statically analyzing the chart’s templates. This documentation takes you from installation to the details of how types are inferred, how Kubernetes and CRD schemas are consulted, and how to shape the result.
Start here#
- Introduction — what the tool does and why template analysis beats reading
values.yaml. - Installation — install the
helm-schemabinary. - Quick start — your first run and how to read the output.
- How it works — the analysis pipeline, phase by phase.
Guide#
- Template analysis — value extraction and control-flow-aware guards.
- Values & defaults — composed defaults,
default-literal type inference, and required fields. - Kubernetes schemas — versions, fallback, mirrors, offline use, and apiVersion inference.
- CRD schemas — the CRD catalog, version lookup, and local overrides.
- Subcharts & dependencies — vendored dependencies, globals, and library-chart scoping.
- Schema overrides — post-process the generated schema.
Reference#
- CLI reference — every flag and argument.
- Output — the shape of the generated schema,
$refhandling, and minimization. - Diagnostics — the warnings and hints the tool emits.
- Caching — cache layout and the compatibility policy.
Also#
- Continuous integration — generate and verify a schema in CI.
- FAQ — status, limitations, and common questions.
helm-schema is alpha. It is useful and works for many charts, but Helm templating has many edge cases; expect some charts to need manual overrides or occasional incorrect inference.