Repository navigation
Conversation
When helm rollback failed on a build error, a pre-rollback hook or a post-rollback hook, performRollback returned without updating the stored revision. It stayed pending-rollback, and every later upgrade failed with "another operation is in progress". Record the revision as failed on those paths, as upgrade already does. The current revision is left untouched. Fixes helm#32867 Signed-off-by: Aryan Deshmukh <[email protected]>
Author
|
Checks are green and the branch merges cleanly with DCO signed. Could a maintainer take a first look when there is time? Happy to adjust the test or the approach. |
Author
|
Friendly ping for a review when someone has time. DCO is signed, and I'm happy to change anything. |
Author
|
Could a maintainer take a first pass at this when the review queue allows? Happy to rework any part of it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
When
helm rollbackfails on a build error, a pre-rollback hook, a post-rollback hook or the waiter setup,performRollbackreturned without updating the stored revision. It stayedpending-rollback, and every later upgrade failed withanother operation (install/upgrade/rollback) is in progress. This records the new revision as failed on those paths through a smallfailRollbackhelper, the same wayupgradedoes. The previous deployed revision is left untouched, as it is for a failed upgrade hook.closes #32867
Special notes for your reviewer:
The new test covers a failing pre-rollback hook, a failing post-rollback hook and a build error, and fails on the base with the revision stuck in
pending-rollback. The waiter setup path has no test because the fake kube client cannot failGetWaiter.Open point: the returns after the cluster is already rolled back (
DeployedAll, the supersede loop and the finalReleases.UpdateinRun) are left as they are. They are storage errors, and marking the revision failed there would describe a cluster that did roll back. Happy to cover them if you prefer.If applicable:
docs neededlabel should be applied if so)