Skip to content

🐛 Handle helm interrupt #1987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

🐛 Handle helm interrupt #1987

wants to merge 2 commits into from

Conversation

perdasilva
Copy link
Contributor

@perdasilva perdasilva commented May 22, 2025

Description

rebase of #1776 - please check the original PR by @azych for description and reviewer comments. I'm reviving the work here as I couldn't push the rebase / fixes to the old PR.

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

azych added 2 commits May 22, 2025 09:19
Introduces a workaround for 'interrupted' helm releases
which enter into a 'pending' (-install/uninstall/rollback) state.
If that happens, for example because of immediate application
exit with one of those operations being in flight, helm is not
able to resolve it automatically which means we end up in
a permanent reconcile error state.
One of the workarounds for this that has been repeated in the
community is to remove metadata of the pending release,
which is the solution chosen here.

For full context see:
#1776
helm/helm#5595
@perdasilva perdasilva requested a review from a team as a code owner May 22, 2025 07:24
Copy link

netlify bot commented May 22, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 6e65206
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/682ed119fde4850008c29c18
😎 Deploy Preview https://deploy-preview-1987--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@openshift-ci openshift-ci bot requested review from bentito and tmshort May 22, 2025 07:24
Copy link

openshift-ci bot commented May 22, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign thetechnick for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

codecov bot commented May 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.25%. Comparing base (532c306) to head (6e65206).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1987      +/-   ##
==========================================
+ Coverage   69.10%   69.25%   +0.15%     
==========================================
  Files          79       79              
  Lines        7023     7045      +22     
==========================================
+ Hits         4853     4879      +26     
+ Misses       1888     1885       -3     
+ Partials      282      281       -1     
Flag Coverage Δ
e2e 43.25% <64.00%> (+0.13%) ⬆️
unit 60.11% <100.00%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

}
// return an error to try to detect proper state (installation/upgrade) at next reconciliation
return nil, "", fmt.Errorf("removed pending release %q version %d metadata", rel.Name, rel.Version)
}
Copy link
Contributor

@camilamacedo86 camilamacedo86 May 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a reasonable way to start solving this one. But perhaps @thetechnick can let us know if the boxcutter initiative cannot solve it. If not, I think the latest questions over it were that we need to solve are:

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.

3 participants