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
Upgrade --install quietly fails to delete resources #11375
bugCategorizes issue or PR as related to a bug.good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.keep open
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
It quietly failed until --debug mode was enabled for the log to appear.
The message was displayed once the flag was passed in. The issue was stale resources were left there if the role attempting to delete the resource did not have permissions to do so.
If the role attempting to delete didn't have permissions to delete, did it even have list permissions? If it couldn't be listed it would be considered deleted already.
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
bugCategorizes issue or PR as related to a bug.good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.keep open
Activity
joejulian commentedon Sep 23, 2022
See #7929
github-actions commentedon Dec 23, 2022
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
joejulian commentedon Dec 24, 2022
That Log call seems to imply it doesn't quietly fail. Are you saying that the message is never displayed?
franceschongg commentedon Dec 30, 2022
It quietly failed until
--debugmode was enabled for the log to appear.The message was displayed once the flag was passed in. The issue was stale resources were left there if the role attempting to delete the resource did not have permissions to do so.
joejulian commentedon Jan 15, 2023
If the role attempting to delete didn't have permissions to delete, did it even have list permissions? If it couldn't be listed it would be considered deleted already.
franceschongg commentedon Jan 18, 2023
Hm, it did have list permissions. It just didn't have the delete permission.
joejulian commentedon Jan 19, 2023
The
Updatefunction states:helm/pkg/kube/client.go
Lines 221 to 223 in 8199db3
but the delete section is the only one that this isn't true for. I'll change this to a bug.
github-actions commentedon Apr 20, 2023
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
dayeguilaiye commentedon Aug 12, 2023
@joejulian I'd like to raise a PR to fix this, but I'm new to helm, I wonder if my thought is right:
We should deal with the error returned by
deleteResource()just likeupdateResource()here:helm/pkg/kube/client.go
Lines 417 to 418 in a3cbe35
CleverFool77 commentedon Feb 4, 2025
What's the update on the bug? I see the PR hasn't been merged yet. Any progress ?
Return errors on upgrade when failing deleting
Return errors on upgrade when deletion fails
Return errors on upgrade when deletion fails
Return errors on upgrade when deletion fails
Return errors on upgrade when deletion fails
benoittgt commentedon Oct 14, 2025
New proposal based on previous stale PR: #31393