helm lint: Command Reference for CI/CD
Validate a chart before it ever reaches a cluster.
helm lint examines a chart for structural problems and best-practice violations. It is the cheapest first gate in a chart pipeline, catching errors before any render or deploy. This reference covers its flags and CI use.
Common flags and usage
- lint <chart-dir>: check a chart for issues
- --strict: treat warnings as errors (fail the build on warnings)
- -f values.yaml / --set k=v: lint with specific values
- --quiet: only surface errors, suppress info messages
- Exits non-zero when it finds errors (or warnings under --strict)
Example
shell
helm lint ./charts/web --strict \
-f ./charts/web/values-prod.yamlIn CI
Run lint --strict as an early PR gate so chart problems fail fast and cheap, before helm template or any deploy. Lint with the same values file the deploy uses so value-dependent template errors surface here rather than at install time.
Key takeaways
- lint is the cheapest chart gate; run it first in the pipeline.
- --strict turns warnings into build failures.
- Lint with the deploy values file to catch value-dependent errors early.
Related guides
Helm Cheat Sheet: Charts, Releases & UpgradesA Helm cheat sheet - install, upgrade, rollback, template, repo, and dependency commands for managing Kuberne…
helm template: Command Reference for CI/CDReference for helm template: render a chart to plain Kubernetes YAML without a cluster, validate with --dry-r…
helm test: Command Reference for CI/CDReference for helm test: run a release embedded test hooks to verify a deploy actually works, fetching logs o…
helm install: Command Reference for CI/CDReference for helm install: install a chart as a release, set values, and use --wait and --atomic so a failed…