change: (helm) - keep attempting to helm uninstall even if the first helm uninstall was not successful#4347
change: (helm) - keep attempting to helm uninstall even if the first helm uninstall was not successful#4347mikeshng wants to merge 1 commit intooperator-framework:masterfrom mikeshng:change-helm-uninstall
Conversation
|
|
||
| kind: "change" | ||
|
|
||
| breaking: true |
There was a problem hiding this comment.
Shows that it is more bug fix. Am I right?
@joelanford. Could you please give a hand with this one? Do you think that we should remove the finalizer if Helm uninstallation completed with an error? WDYT?
|
/retest |
…helm uninstall was not successful Signed-off-by: Mike Ng <ming@redhat.com>
|
Rebased but I don't feel too confident about this PR anymore.
Dear operator-sdk maintainers, please feel free to close this PR. Thanks. |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
|
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
|
@openshift-bot: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Mike Ng ming@redhat.com
Description of the change:
For Helm-based operators delete resource, if the Helm uninstall completed with error, then keep trying to uninstall until there is no error on the Helm uninstall.
Motivation for the change:
For the Helm client, the
helm uninstallcommand removes the release record even if the uninstall completed with error(s). This is fine behaviour for regular CLI execution because a user is informed that there was an error with the uninstall and the user will perform the proper recovery procedures.However, this is problematic with the current implementation of the Helm operator. The Helm uninstall might have error and not deleted anything but since the release record is removed, the Helm operator thinks the release is gone and proceed to remove it's finalizer. So unless the user double check the log, the uninstall error is hidden away. See #3407 (comment)
This change is to enhance the behaviour of the Helm operator uninstall scenario, where the error will persist on the resource status for user to debug.
Closes: #3407
before this change:
after this change:
Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments(seechangelog/fragments/00-template.yaml)website/content/en/docs