Examples
Every runnable example in this repo, mapped to the chapter it supports.
Every hands-on chapter ships a runnable example under
examples/,
a snapshot of the chart or workflow that chapter builds. Each one runs against
the project-local Helm 4 and a single minikube profile; the OpenShift Local
example runs on CRC.
| # | Example | What it shows | Chapter |
|---|---|---|---|
| 01 | lab-setup | Project-local Helm 4 toolchain and the minikube profile | Ch1 |
| 02 | helm-tour | A first install, upgrade, and rollback with Helm 4 | Ch2 |
| 03 | raw-manifests | The pain a chart removes: three environments from raw YAML | Ch3 |
| 04 | first-chart | A first chart: Chart.yaml, templates, release revisions | Ch4 |
| 05 | values | A designed values interface, schema, and per-environment overrides | Ch5 |
| 06 | templates | Template built-ins, functions, and control flow | Ch6 |
| 07 | helpers-notes | _helpers.tpl names and labels, and NOTES.txt |
Ch7 |
| 08 | config-secrets | ConfigMaps, Secrets, and the sources that feed them | Ch8 |
| 09 | postgres-subchart | A parent chart, a subchart dependency, and the values between them | Ch9 |
| 10 | crds-operators | Who owns the CRD, the custom resources, and the operator | Ch10 |
| 11 | hooks-migrations | Lifecycle hooks and a migration job | Ch11 |
| 12 | release-lifecycle | Install, upgrade, rollback, and the paths out of a failed upgrade | Ch12 |
| 13 | debugging | The debug ladder: template, lint, dry-run, and API-server checks | Ch13 |
| 14 | chart-testing | The chart test pyramid and helm test |
Ch14 |
| 15 | kafka-notification | A dispatch event path and the Strimzi resources behind the topic | Ch15 |
| 16 | umbrella | An umbrella chart: aliases, switches, global and imported values | Ch16 |
| 17 | library-chart | One library chart, many consumers | Ch17 |
| 18 | starters | Starters and golden-path scaffolding | Ch18 |
| 19 | packaging-repos | Packaging a chart, an index, and a served repository | Ch19 |
| 20 | oci | Pushing and pulling charts from an OCI registry | Ch20 |
| 21 | signing | Helm provenance and cosign registry signing | Ch21 |
| 22 | plugins | The Helm 4 plugin system, subprocess and Wasm runtimes | Ch22 |
| 23 | post-renderers | A post-renderer between render and apply | Ch23 |
| 24 | environments | Build once, promote by edit across environments | Ch24 |
| 25 | gitops-argocd | The Argo CD loop around a Helm chart | Ch25 |
| 26 | observability | A dashboard ConfigMap and the LGTM stack from the chart | Ch26 |
| 27 | openshift-crc | The same chart on OpenShift Local (CRC), with a verify script | Appendix |
Build, run, observe
Each example is a self-contained snapshot. Set up the project-local Helm 4 and the cluster, then install the chart and inspect the result:
source scripts/env.sh # project-local Helm 4 on PATH
cd examples/04-first-chart
helm install hfd . --namespace hfd --create-namespace --wait
helm test hfd --namespace hfd # where the example ships tests
Each chapter’s Build, run, observe section names the exact commands for that example and what to look for. See Prerequisites for the toolchain setup.