-
Notifications
You must be signed in to change notification settings - Fork 535
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
WIP: Add operand cleanup implementation #2030
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: hasbro17 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 |
This commit introduces the operand cleanup feature which enables a CSV to be configured so the OLM operator can clean up CRs on operator uninstall or CSV deletion. Adds the logic for opt-in/opt-out for operand cleanup and adds a finalizer that runs through the cleanup steps for removing CRs and updating the status.
618a9d7
to
ac3047a
Compare
/hold Waiting to finish up some small TODOs and add unit and e2e tests. |
@hasbro17: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
@hasbro17: PR needs rebase. 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. |
Closing this for now since there are a lot of unintended risks and caveats with the implementing operand cleanup on the server side in its current form. See: https://github.com/operator-framework/enhancements/pull/71/files and https://hackmd.io/HgLaQSyHTXuPpnyqzsM0SQ |
Description of the change:
This PR introduces the operand cleanup feature which enables a CSV to be configured so the OLM operator can clean up CRs on operator uninstall or CSV deletion.
Adds the logic for opt-in/opt-out for operand cleanup and adds a finalizer that runs through the cleanup steps for removing CRs and updating the status.
Associated CSV API changes: operator-framework/api#100
Motivation for the change:
Enhancement: https://github.com/operator-framework/enhancements/blob/master/enhancements/olm-deletes-operands.md
Closes: #1787
TODO:
Reviewer Checklist
/docs