Helm in depth
Example: packaging an internal service as a chart
Example: a hypothetical platform team packages a standard web service chart that most product teams use. Chart.yaml declares the chart version and the default appVersion. Templates cover a Deployment, Service, HorizontalPodAutoscaler, PodDisruptionBudget and optional HTTPRoute, with shared labels and names generated by helpers in a _helpers.tpl file. A values.schema.json file validates values, so a typo such as "replicaCont" or a string where a number belongs fails at install time instead of producing a broken manifest. Each team keeps a short values file per environment in its GitOps repository. The chart itself is versioned, tested in CI and pushed to an OCI registry, and teams upgrade by bumping the chart version in a pull request.
Testing and reviewing charts
- helm lint catches structural problems and template errors.
- helm template renders manifests locally, so reviewers and policy tools can inspect the actual YAML that will be applied.
- Schema validation through values.schema.json rejects bad values early.
- Unit tests with the helm-unittest plugin assert that given values produce the expected objects.
- Install tests with chart-testing (ct) install charts into a temporary cluster, such as kind, and run helm test hooks.
- Policy checks run on rendered output with tools such as Kyverno CLI, Conftest or kube-linter.
- Diffs before upgrades with the helm-diff plugin, or through the diff view of a GitOps controller.
Helm alone or through GitOps
| Approach | Strengths | Trade-offs |
| helm install and upgrade from CI | Simple, familiar, built-in rollback | CI needs cluster credentials; drift is not corrected |
| Flux HelmRelease | Declarative releases, remediation on failure, drift detection | Another controller to operate |
| Argo CD rendering charts | UI, diffing, sync waves | Argo CD renders templates and applies manifests itself, so Helm's release history and some hook behavior differ |
Supply-chain hygiene for charts
Third-party charts run with whatever permissions their templates request, so review them like code: check RBAC rules, privileged settings and default images. Pin chart versions, mirror critical charts into your own registry, and verify signatures where publishers provide them. Track upstream releases and security advisories, because a chart version also pins container image versions.
Common mistakes
- Exposing every Kubernetes field as a value, so the chart becomes a harder way to write YAML.
- Deeply nested conditionals that nobody can review.
- Storing secrets in values files committed to Git.
- Upgrading third-party charts across several major versions at once without reading changelogs.
- Forgetting that CRDs placed in a chart's crds directory are installed on first install but not upgraded by Helm, so CRD upgrades need their own process.
Helm works alongside Kustomize, is delivered through GitOps tools such as Argo CD and Flux, and often forms part of a golden path. We design charts and release flows in our Kubernetes and GitOps services.