← All notes

Helm chart tests: workload hooks that validate an installed chart

Answer: Chart authors can ship tests that check an install the way a consumer will run it.

Where tests live

A chart is a set of Kubernetes resources and related components that are meant to work together.

The tests also show consumers what the chart is expected to do.

Each test is a workload, often a Pod or a Job, stored under the templates directory.

The workload runs a container with a command you choose.

What success means

The container must exit 0 for the test to pass.

Add the hook annotation helm.sh/hook: test on that workload.

Before Helm 3, tests used the older test-success or test-failure hook values.

The test-success annotation is still accepted as a backwards-compatible alternative.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Chart Tests; The Helm Authors, chart_tests.md source. MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Chart Tests; The Helm Authors, chart_tests.md source. MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors.

Cite this

Permanent ID: iil:note:3ddzceb4

iinventedlight. 2026. "Helm chart tests: workload hooks that validate an installed chart." iinventedlight Library, iil:note:3ddzceb4, version of 2026-11-24. https://iinventedlight.com/library/notes/helm-chart-tests/. License: CC-BY-4.0.

@misc{iil_note_3ddzceb4,
  author = {{iinventedlight}},
  title = {{Helm chart tests: workload hooks that validate an installed chart}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-24},
  url = {https://iinventedlight.com/library/notes/helm-chart-tests/},
  note = {Permanent ID iil:note:3ddzceb4. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/helm-chart-tests.md.