You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
helm diff upgrade reports no changes after a failed upgrade (baseline is the failed revision) #1045
After a helm upgrade fails, helm diff upgrade reports no changes — even though the
new manifest was never applied to the cluster. The next diff compares the new render against
the failed revision, which already stores that same render, so the output is empty while the
cluster still runs the old spec.
Versions
helm-diff: 3.12.4 (also verified against current main)
helm: v3.18.4
Kubernetes: 1.31 (GKE)
Reproduction
Deploy a release successfully:
helm upgrade --install myapp ./chart -n myapp
Change a value that alters a StatefulSet/Deployment pod spec, then force the upgrade to
fail. Any failure mode works; a short atomic timeout is the quickest:
helm get manifest returns the newest revision regardless of status. Helm writes the
rendered manifest into the release record before applying (as pending-upgrade, then switch to failed on error), so a failed revision holds the manifest that was never fully applied — and
helm-diff uses it as the baseline.
Suggested fix
I can see these options:
Nice solution would be to use the newest revision with status: deployed as the baseline rather than the newest revision. But that could be considered breaking change, and might require separate cli arg
Add --revision to helm diff upgrade should be small and non-breaking change
@sepich
Context:
In Helm, when a release upgrade fails, it is possible that some resources within that release were already successfully created or updated before the failure occurred.
Problem Statement:
When we run sync again to recover from this partial update state, does your current solution/proposal handle this scenario properly? Specifically, can it correctly reconcile and re-sync the resources that are in a partially updated state?
Question:
Does your proposed solution address the case of partial updates after a failed Helm upgrade? If so, how is the state managed during the re-sync?
Specifically, can it correctly reconcile and re-sync the resources that are in a partially updated state?
Helm just applies resources in specific order. If it fails on some of them, it exits leaving objects in k8s as is (if running without --atomic). There is no problem to do helm upgrade one more time and it would try to re-apply same objects again. Each specific object is either old or new, there is no "partially updated state" for objects, it could be "partial" for the chart as a whole.
Does your proposed solution address the case of partial updates after a failed Helm upgrade? If so, how is the state managed during the re-sync?
My proposed solution just allows to specify exact --revision for helm diff. By default the same "latest" revision is used as before. It has nothing to do with "state re-sync" and "partial updates". That is up to the user. For example before calling helm diff in CI, I now can check status of the last revision, and call helm diff --revision N-1 instead if the latest is failed. That is just an option for me. Without this cli arg I have no any options.
Activity
yxxhero commentedon Aug 18, 2026
@sepich
Context:
In Helm, when a release upgrade fails, it is possible that some resources within that release were already successfully created or updated before the failure occurred.
Problem Statement:
When we run sync again to recover from this partial update state, does your current solution/proposal handle this scenario properly? Specifically, can it correctly reconcile and re-sync the resources that are in a partially updated state?
Question:
Does your proposed solution address the case of partial updates after a failed Helm upgrade? If so, how is the state managed during the re-sync?
sepich commentedon Aug 18, 2026
Helm just applies resources in specific order. If it fails on some of them, it exits leaving objects in k8s as is (if running without
--atomic). There is no problem to dohelm upgradeone more time and it would try to re-apply same objects again. Each specific object is either old or new, there is no "partially updated state" for objects, it could be "partial" for the chart as a whole.My proposed solution just allows to specify exact
--revisionforhelm diff. By default the same "latest" revision is used as before. It has nothing to do with "state re-sync" and "partial updates". That is up to the user. For example before callinghelm diffin CI, I now can checkstatusof the last revision, and callhelm diff --revision N-1instead if the latest isfailed. That is just an option for me. Without this cli arg I have no any options.Pass --revision to helm diff upgrade (#1046)