HelmRelease and helm-controller

The HelmRelease CRD turns Helm into a controller-driven, continuously reconciled resource with automated remediation, drift correction, and post-render patching — replacing helm upgrade in CI.

Overview

Why HelmRelease exists

Running Helm from CI means a pipeline holds cluster credentials, runs helm upgrade --install, and then stops caring. A half-failed upgrade sits in a failed state and blocks the next attempt; a hand edit to a Deployment goes unnoticed.

The HelmRelease CRD moves all of that inside the cluster, into a controller that keeps reconciling. Four pieces work together.

helm-controller performs genuine Helm actions, writes genuine Helm release Secrets, and stays interoperable with the helm CLI. What changes is the trigger (a declarative object, not a pipeline step) and the follow-through (a reconciliation loop with an explicit remediation state machine).

Key concepts

  • HelmRelease CRD
  • chart versus chartRef
  • valuesFrom with targetPath
  • Remediation
  • driftDetection
  • postRenderers
  • maxHistory
  • storageNamespace and targetNamespace

Interview questions

  • Trace the helm-controller lineage and explain why the API group matters.
  • Walk through exactly what happens when a HelmRelease upgrade fails.
  • How does HelmRelease drift detection work, and why is it disabled by default?
  • How do you supply values to a HelmRelease, including secrets, without committing credentials?
  • Compare a HelmRelease to running helm upgrade --install from CI. What do you actually gain?
  • An upstream chart does not expose the field you need to change. How do you handle it in Flux?

Sign up free to read the full topic

More DevOps topics

Start free on Cariara · Coding problems · System design studio