The Helm Controller
Where Argo CD uses Helm only as a template engine, Flux's helm-controller performs real Helm operations: install, upgrade, test, rollback and uninstall, with release history in the cluster (helm list and helm history work). A HelmRelease object declares the chart, its version and the values, and the controller keeps the release matching it.
Where the chart comes from
spec field |
Chart source | When |
|---|---|---|
chartRef: {kind: OCIRepository, name: …} |
an OCI artifact that is the chart | charts in an OCI registry (recommended for new setups) |
chartRef: {kind: HelmChart, name: …} |
an existing HelmChart object | sharing one chart object between releases |
chart.spec: {chart, version, sourceRef} |
a template the controller turns into a HelmChart, from a HelmRepository, GitRepository or Bucket | classic HTTP Helm repositories, or a chart folder in Git |
A HelmRelease for linkly, from an OCI chart
flux create source oci linkly-chart --url=oci://ghcr.io/acme/charts/linkly \
--tag-semver="0.3.x" --interval=10m --export > release.yaml
flux create helmrelease linkly --namespace=linkly-prod --chart-ref=OCIRepository/linkly-chart.flux-system \
--target-namespace=linkly-prod --interval=10m --export >> release.yaml
# values, remediation and tests are added in Git like any other field
yq -i 'select(.kind == "HelmRelease") |= (
.spec.values = {"replicaCount": 3, "image": {"tag": "1.4.1"}} |
.spec.valuesFrom = [{"kind": "ConfigMap", "name": "linkly-cluster-values", "valuesKey": "values.yaml"}] |
.spec.install.remediation.retries = 3 |
.spec.upgrade.remediation = {"retries": 3, "strategy": "rollback"} |
.spec.test.enable = true )' release.yaml
yq 'select(.kind == "HelmRelease") | .spec' release.yaml
kubeconform -strict -summary release.yamlchartRef:
kind: OCIRepository
name: linkly-chart
namespace: flux-system
interval: 10m0s
storageNamespace: linkly-prod
targetNamespace: linkly-prod
values:
replicaCount: 3
image:
tag: 1.4.1
valuesFrom:
- kind: ConfigMap
name: linkly-cluster-values
valuesKey: values.yaml
install:
remediation:
retries: 3
upgrade:
remediation:
retries: 3
strategy: rollback
test:
enable: true
Summary: 2 resources found in 1 file - Valid: 2, Invalid: 0, Errors: 0, Skipped: 0
Values: where they come from, in which order
The controller merges values like helm upgrade -f a.yaml -f b.yaml: the chart's defaults, then each valuesFrom entry in order (ConfigMaps or Secrets, optionally one key with targetPath), then spec.values on top. Keep shared cluster facts (domain, region) in a ConfigMap that every release reads, and the app-specific settings in spec.values. The same merge with plain Helm:
mkdir -p linkly/templates
printf 'apiVersion: v2\nname: linkly\nversion: 0.3.2\nappVersion: "1.4.0"\n' > linkly/Chart.yaml
printf 'replicaCount: 2\nhost: lnk.example.com\nlogLevel: info\nimage: {tag: ""}\n' > linkly/values.yaml
cat > linkly/templates/cm.yaml <<'EOF'
apiVersion: v1
kind: ConfigMap
metadata: {name: linkly-settings}
data:
replicas: {{ .Values.replicaCount | quote }}
host: {{ .Values.host }}
logLevel: {{ .Values.logLevel }}
image: "ghcr.io/acme/linkly:{{ .Values.image.tag | default .Chart.AppVersion }}"
EOF
printf 'host: lnk.prod.example.com\nlogLevel: warn\n' > from-configmap.yaml # valuesFrom
printf 'replicaCount: 3\nimage: {tag: 1.4.1}\nlogLevel: info\n' > spec-values.yaml # spec.values
helm template linkly linkly -f from-configmap.yaml -f spec-values.yaml | yq '.data'replicas: "3"
host: lnk.prod.example.com
logLevel: info
image: "ghcr.io/acme/linkly:1.4.1"
logLevel shows the precedence: the ConfigMap said warn, spec.values said info, and spec.values wins.
Failures, remediation and drift
A failed helm upgrade leaves a release in a failed state. The helm-controller can repair it automatically:
| Field | Effect |
|---|---|
install.remediation.retries: 3 |
if the first install fails, uninstall and try again up to 3 times |
upgrade.remediation.retries: 3 + strategy: rollback |
if an upgrade fails (including failed tests or a timeout waiting for readiness), roll back to the last good release and retry |
upgrade.remediation.remediateLastFailure |
whether to remediate when the retries run out (defaults to true when retries are set) |
test.enable: true |
run the chart's helm test hooks after install/upgrade; a failing test counts as a failed release |
driftDetection.mode: enabled |
compare the cluster with the release manifest and correct changes (Drift) |
timeout |
how long Helm waits for resources to become ready (Helm's --wait is on by default here) |
This is the one place Flux does an automatic rollback: of a Helm upgrade that failed, to the previous Helm revision. Git still says the new version, so the release shows Ready=False with the failure, and the controller retries when the spec changes. A bad version that deploys "successfully" but misbehaves is not caught by this: that's what canaries are for (Argo Rollouts, or Flagger with Flux).
Status on a live cluster (sample session)
flux get helmreleases -n linkly-prod
helm history linkly -n linkly-prodNAME REVISION SUSPENDED READY MESSAGE
linkly 0.3.2 False False Helm upgrade failed for release linkly-prod/linkly with chart linkly@0.3.2: context deadline exceeded
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
2 Tue Jan 13 09:12:04 2026 superseded linkly-0.3.1 1.4.0 Upgrade complete
3 Wed Jan 14 16:40:51 2026 superseded linkly-0.3.2 1.4.0 Upgrade "linkly" failed: context deadline exceeded
4 Wed Jan 14 16:46:02 2026 deployed linkly-0.3.1 1.4.0 Rollback to 2Revision 3 timed out, the controller rolled back to revision 2's chart and values as revision 4, and the workload runs the old version again, while the HelmRelease stays Ready=False to show that Git's version failed. Fix the cause in Git and the next reconciliation upgrades again.
Test yourself
What is a key difference between Flux's helm-controller and Argo CD's Helm support?
- Flux can't use OCI charts
- Flux performs real Helm releases (history, hooks, tests, rollback); Argo CD renders with helm template and applies the objects
- Argo CD runs helm upgrade
- There is none
A ConfigMap in valuesFrom sets logLevel: warn and spec.values sets logLevel: info. What does the chart get?
- warn
- info
- both, as a list
- an error
With upgrade.remediation.strategy: rollback, what triggers the automatic rollback?
- High error rates in production
- A failed Helm upgrade: an error, a readiness timeout, or failed chart tests
- Any new commit
- A manual kubectl edit