-
Notifications
You must be signed in to change notification settings - Fork 927
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
KEP: Resource deletion protection proposal #3802
KEP: Resource deletion protection proposal #3802
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3802 +/- ##
==========================================
- Coverage 55.68% 53.82% -1.87%
==========================================
Files 222 231 +9
Lines 21195 23013 +1818
==========================================
+ Hits 11803 12386 +583
- Misses 8765 9954 +1189
- Partials 627 673 +46
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
4de6e36
to
3936282
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks~
Regarding the issue of users force deleting resources, I believe we shouldn't block this operation. Our goal is to prevent users from accidentally deleting resources, but if a user uses the |
/cc @zishen @RainbowMango |
@Vacant2333: GitHub didn't allow me to request PR reviews from the following users: zishen. Note that only karmada-io members and repo collaborators can review this PR, and authors cannot review their own PRs. In 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. |
We can add this QA to the proposal. |
9b11d26
to
fd5651c
Compare
Please sign off refer to https://github.com/karmada-io/karmada/pull/3802/checks?check_run_id=15416905578 Ask an review from @zishen @RainbowMango |
fd5651c
to
32cea53
Compare
Our label name may need to be changed. Does anyone have any suggestions? |
32cea53
to
12a5ded
Compare
After a quick glance at this proposal, a question occurred to me: Will it be convenient enough for users to have |
If there are numerous resources that need to be protected, it would be tedious for users to add labels one by one. It would be more convenient if a configurable resource could be provided to inform Karmada which resources need protection. |
Wondering whether such implementation would be overly complex, we only need to protect the resources of the control plane, and in most cases, there may not be too many resources that need protection. |
The deletion protection for individual resources is an atomic capability that we provide. If there are a large number of resources that need to be protected, we may need to consider how to optimize the user experience. |
Perhaps we can consider this issue after implementing the proposal? |
Yes, I agree with your point. |
In Kruise, they did not adopt an automatic protection strategy but instead used two levels of protection. However, I believe their approach is not only complex but also has some limitations, and it also involves manually adding labels. I think our practice of manually adding them is sufficient, and adding a default policy may cause inconvenience to the users. |
I think we can add a new featureGate that, when turned on, enables deletion protection for all namespace resources (and extends to other resources as well). |
This is a good idea, but perhaps users don't want to protect all namespaces by default? Maybe this featureGate could be solely responsible for enabling or disabling deletion protection. |
44e5ac4
to
12a5ded
Compare
/assign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! Let's continue to improve this proposal.
Hi, Please tidy the commits, let's get it ready to move forward. |
Signed-off-by: Vacant2333 <vacant2333@gmail.com>
9154dbb
to
335aab3
Compare
~~ok |
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
Add resource deletion protection proposal
Issue: #3728
/kind feature
/kind documentation
Special notes for your reviewer:
Does this PR introduce a user-facing change?: