Skip to content

What is installed is what deployed - #72

Closed
vitramir wants to merge 1 commit into
mainfrom
fix/failed-upgrade-is-not-installed
Closed

vitramir wants to merge 1 commit into
mainfrom
fix/failed-upgrade-is-not-installed

Conversation

@vitramir

Copy link
Copy Markdown
Contributor

An upgrade that fails still records the version it was reaching for, and helm list reports that as the release's chart. installed_version read it from there, so a release left failed at the target version answered already at and was skipped — and the upgrade that would repair it is exactly the one being refused. The VM stays on whatever last deployed, with no way forward through the CLI.

Hit for real: an interrupted helm upgrade to agyn-platform-0.70.3 left revision 24 failed, and every agyn local upgrade after it reported

· agyn-platform  already at 0.70.3

while the cluster still ran 0.70.2's workloads.

--resume does not cover this: it clears pending-*, which is what a killed helm leaves. A helm that handles the cancellation and marks the release failed lands outside that branch, and then the version check skips anyway.

Change

installed_version reports the newest revision that actually deployed, falling back to helm list where none has, so a release that has only ever failed still reports something.

The regression test fails on main with the real symptom (AGYN|skip|already at 0.70.3) and passes here.

An upgrade that fails still records the version it was reaching for, and
helm list reports that as the release's chart. A release left failed at
the version being upgraded to therefore answered "already at" and was
skipped -- the upgrade that would repair it is the one being refused,
so the VM stayed on the release that actually deployed with no way
forward through the CLI.

installed_version now reads the newest revision that deployed, falling
back to helm list where none has, so a release that has only ever failed
still reports something.
@vitramir

Copy link
Copy Markdown
Contributor Author

Not the CLI's job — this state only existed because an upgrade was run with helm directly instead of agyn local upgrade. Repairing the release instead.

@vitramir vitramir closed this Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant