Skip to content

fix(uninstall): preserve release after pre-delete failure - #32628

Draft
loglapa wants to merge 1 commit into
helm:mainfrom
loglapa:fix/pre-delete-failure-9700
Draft

fix(uninstall): preserve release after pre-delete failure#32628
loglapa wants to merge 1 commit into
helm:mainfrom
loglapa:fix/pre-delete-failure-9700

Conversation

@loglapa

@loglapa loglapa commented Sep 4, 2026

Copy link
Copy Markdown

What this PR does / why we need it:

Keeps a release deployed when a pre-delete hook fails instead of persisting it as uninstalling. The failed hook result is still recorded, so users can inspect the failure and either retry the uninstall or upgrade the release.

Closes #9700.

Special notes for your reviewer:

This preserves both recovery paths discussed on the earlier PR: retrying uninstall and upgrading the release. The change targets Helm v4 main; a v3 backport can be considered separately if still applicable.

Validation: go test ./pkg/action -run '^TestUninstall' -count=1

If applicable:

  • this PR contains user facing changes (the docs needed label should be applied if so)
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Signed-off-by: Vladislav Lapin <51929896+loglapa@users.noreply.github.com>
@pull-request-size pull-request-size Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 4, 2026
@github-actions github-actions Bot added the v4.x Issues and Pull Requests related to the major version v4 label Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files. v4.x Issues and Pull Requests related to the major version v4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helm pre-delete hooks Remove Chart Metadata on Failure

1 participant