Helm 4 for Helm 3 Users
Helm 4.0.0 was released on 12 November 2025, six years after Helm 3. Helm 3 bug fixes ended on 8 July 2026 and its security fixes end on 11 November 2026, so new work should target Helm 4. Most tutorials, CI templates and answers online still show Helm 3; this lesson lists what changed so you can translate them.
What did not change
- Charts.
apiVersion: v2charts work unchanged; everything in the Helm Charts section of this course applies to both versions. - Day-to-day commands.
install,upgrade,rollback,template,lint,package,push,pull,dependency,repokeep their names and most flags. - Release storage. Releases are still Secrets named
sh.helm.release.v1.…, so Helm 4 can upgrade releases created by Helm 3.
Renamed flags
The old names still work but print a deprecation warning, which is easy to catch in CI logs:
mkdir -p linkly/templates && cd linkly
printf 'apiVersion: v2\nname: linkly\nversion: 0.8.0\n' > Chart.yaml
printf 'apiVersion: v1\nkind: ConfigMap\nmetadata:\n name: {{ .Release.Name }}\n' > templates/cm.yaml
helm install web . --atomic --force --dry-run=client 2>&1 | grep -E 'deprecated|STATUS'Flag --atomic has been deprecated, use --rollback-on-failure instead
Flag --force has been deprecated, use --force-replace instead
STATUS: pending-install
| Helm 3 | Helm 4 | Notes |
|---|---|---|
--atomic |
--rollback-on-failure |
also implies --wait=watcher |
--force |
--force-replace |
deletes and recreates objects |
--wait (polling) |
--wait = --wait=watcher (kstatus); --wait=legacy for the old behaviour; default hookOnly |
|
helm template --hide-notes, --render-subchart-notes |
deprecated, no effect | removed in Helm 5 |
| — | --server-side, --force-conflicts |
server-side apply, see Releases |
Behaviour changes that matter in practice
| Area | Helm 3 | Helm 4 |
|---|---|---|
| applying objects | client-side three-way merge | server-side apply for new installs; existing releases keep their method |
| waiting | Helm's own readiness checks | kstatus (--wait=watcher), the same status rules other Kubernetes tools use |
| post-renderers | --post-renderer ./any-executable |
must be the name of a post-renderer plugin |
| plugins | executables + plugin.yaml |
redesigned system with plugin types (CLI, getter, post-renderer) and an optional WebAssembly runtime; existing plugins keep working |
| registry login | accepted a URL | hostname only (helm registry login registry.example.com) |
| OCI installs | by tag | by tag or digest (…/linkly@sha256:…); a digest mismatch refuses to install |
| values files | first YAML document only | multiple documents in one file, merged in order |
| chart archives | timestamps of the files | reproducible archives (same input, same bytes) |
| caching | repository index cache | plus a content-based chart cache (--content-cache) |
| logging | Go log |
log/slog, which is why warnings look like level=WARN msg=… |
Two of these, seen in a session:
mkdir -p linkly/templates && cd linkly
printf 'apiVersion: v2\nname: linkly\nversion: 0.8.0\n' > Chart.yaml
printf 'apiVersion: v1\nkind: ConfigMap\nmetadata:\n name: x\n' > templates/cm.yaml
printf '#!/bin/sh\ncat\n' > add-labels.sh && chmod +x add-labels.sh
echo "--- a post-renderer script, Helm 3 style:"
helm template web . --post-renderer ./add-labels.sh 2>&1 | head -1
echo "--- registry login with a URL, then with a hostname:"
helm registry login http://localhost:5000 -u learner -p demo 2>&1 | tail -1
helm registry login localhost:5000 -u learner -p demo --plain-http 2>&1 | grep -v 'level=WARN'
echo "--- packaging twice gives identical archives:"
cd .. && helm package linkly -d a >/dev/null && touch linkly/Chart.yaml && helm package linkly -d b >/dev/null
sha256sum a/linkly-0.8.0.tgz b/linkly-0.8.0.tgz | awk '{print substr($1,1,12), $2}'--- a post-renderer script, Helm 3 style:
Error: invalid argument "./add-labels.sh" for "--post-renderer" flag: plugin: {Name:./add-labels.sh Type:postrenderer/v1} not found
--- registry login with a URL, then with a hostname:
Error: invalid reference: invalid registry "http://localhost:5000"
Login Succeeded
--- packaging twice gives identical archives:
ddea17173a15 a/linkly-0.8.0.tgz
ddea17173a15 b/linkly-0.8.0.tgz
The local registry has no authentication, so any login succeeds. (-p on the command line makes Helm warn that it's insecure, filtered out above; in CI pipe the token in with --password-stdin.) Against a real registry the same command stores a token in ~/.config/helm/registry/config.json.
Post-renderers as plugins
A post-renderer receives the fully rendered manifests on standard input and returns modified ones: the classic uses are adding labels and running Kustomize over a third-party chart's output. In Helm 4 you wrap the program as a plugin of type postrenderer/v1 and pass the plugin's name. Plugins install from a local directory offline:
mkdir -p plugins/label-injector && cd plugins/label-injector
cat > plugin.yaml <<'EOF'
apiVersion: v1
type: postrenderer/v1
name: label-injector
version: 0.1.0
runtime: subprocess
runtimeConfig:
platformCommand:
- command: ${HELM_PLUGIN_DIR}/inject-labels.sh
EOF
cat > inject-labels.sh <<'EOF'
#!/bin/sh
# rendered manifests come in on standard input; modified ones go out on standard output
yq '.metadata.labels."acme.example.com/team" = "links"'
EOF
chmod +x inject-labels.sh
cd ~ && helm plugin install ./plugins/label-injector
helm plugin list
mkdir -p linkly/templates
printf 'apiVersion: v2\nname: linkly\nversion: 0.8.0\n' > linkly/Chart.yaml
cat > linkly/templates/cm.yaml <<'EOF'
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-config
labels: {app.kubernetes.io/name: linkly}
EOF
helm template web linkly --post-renderer label-injectorInstalling plugin from local directory (development mode)
Installed plugin: label-injector
NAME VERSION TYPE APIVERSION PROVENANCE SOURCE
label-injector 0.1.0 postrenderer/v1 v1 local dev unknown
---
# Source: linkly/templates/cm.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: web-config
labels: {app.kubernetes.io/name: linkly, acme.example.com/team: links}
The same flag works on install and upgrade, so labels added this way reach the cluster. The PROVENANCE column says local dev: a plugin installed from a directory is unsigned, while Helm 4 can verify signed plugin archives (helm plugin verify). The plugin system is new, so check the plugin documentation on helm.sh for the current manifest fields. Often the simpler route is Kustomize's own Helm support (Helm Rendered Through Kustomize).
Chart API v3
A new chart format is in development. It is experimental and off by default:
export HELM_EXPERIMENTAL_CHART_V3=1
helm create --chart-api-version=v3 linklyDon't publish v3 charts yet: Helm 3 can't read them and the format may still change. Keep writing apiVersion: v2.
Migrating a team
- Install Helm 4 next to Helm 3 in CI and run
helm template/lintwith both; the rendered output should be identical for v2 charts. - Replace
--atomic/--forceand fail the build ondeprecatedwarnings. - Turn executable post-renderers into plugins, or move that step into Kustomize.
- Fix
helm registry logincalls that pass URLs. - Expect server-side apply conflicts on new installs where something else edits Helm-managed fields (manual
kubectl edit, controllers). They were silently overwritten before; now they're visible. Fix the cause, or use--force-conflictsdeliberately.
Test yourself
A Helm 3 pipeline runs helm upgrade --install --atomic. What should it say in Helm 4?
- --atomic still works and is preferred
- --rollback-on-failure
- --wait=atomic
- --safe
Why does --post-renderer ./script.sh fail in Helm 4?
- Post-renderers were removed
- --post-renderer now takes the name of a post-renderer plugin
- Scripts must be in $PATH
- Only WASM is allowed
Which apply method does a release created by Helm 3 use after upgrading with Helm 4?
- Server-side apply automatically
- Its previous (client-side) method, unless --server-side=true is passed
- It must be reinstalled
- kubectl apply