Helm in Depth — From Charts to a Platform Library›Charts for a platform · Cheat sheet & self-check

Charts for a platform · wrap-up

Cheat sheet & self-check

Every command from this section on one page.

04 · Library and umbrella charts

Library chart workflow

type: libraryIn the library's Chart.yaml: templates only, nothing rendered on its own
dependencies: [ { name: platform-lib, version: 1.2.0, repository: oci://registry/charts } ]In the service chart's Chart.yaml
helm dependency update ./ordersFetch dependencies, write Chart.lock
helm template orders ./ordersRender the service with the library's defaults
helm lint ./ordersLint the result

05 · CRDs and hooks

CRDs

helm install … --skip-crdsInstall without the chart's crds/ folder (CRDs managed elsewhere)
kubectl apply --server-side -f crds/Install or upgrade CRDs yourself (large CRDs need server-side apply)
kubectl get crd <name> -o jsonpath='{.spec.versions[*].name}'Which API versions a CRD serves

Hooks

helm.sh/hook: pre-upgradeRun this resource before the upgrade's manifests are applied
helm.sh/hook-weight: "-5"Order among hooks (lower first)
helm.sh/hook-delete-policy: before-hook-creation,hook-succeededClean up hook resources
helm test orders -n shopRun the chart's test hooks

06 · Testing charts

Test pipeline

helm lint ./orders --strictChart structure and template problems
helm template orders ./orders -f ci/prod-values.yaml > rendered.yamlRender with realistic values
kubeconform -strict -summary rendered.yamlValidate against Kubernetes schemas (add CRD schemas for custom kinds)
helm unittest ./ordersRun unit tests in tests/*_test.yaml (helm-unittest plugin)
kyverno apply policies/ --resource rendered.yamlCheck rendered output against platform policies
ct lint --charts ./orders && ct install --charts ./orderschart-testing: lint, version bump check, install on a cluster