-
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
[Feat] Resource Deletion Protection #4074
[Feat] Resource Deletion Protection #4074
Conversation
Codecov ReportAll modified lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #4074 +/- ##
==========================================
- Coverage 54.71% 53.50% -1.21%
==========================================
Files 232 234 +2
Lines 22828 23296 +468
==========================================
- Hits 12490 12465 -25
- Misses 9659 10149 +490
- Partials 679 682 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Thanks, @Vacant2333, I will review it later. |
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.
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.
Good Job!
5723823
to
7902764
Compare
7902764
to
7bafc02
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~
/lgtm
/cc @RainbowMango @chaunceyjiang
/cc @RainbowMango |
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.
/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.
/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.
nice finding! for the renaming: validation.go --> validating.go.
cc @jwcesign
It's no big deal, but it'd be great if we kept the consistent naming rule.
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.
Generally looks good, just proposed another label key.
Please let me know what you think.
By the way, @Vacant2333 sorry for the day.
7bafc02
to
76c6a08
Compare
@@ -256,6 +256,23 @@ webhooks: | |||
sideEffects: None | |||
admissionReviewVersions: [ "v1" ] | |||
timeoutSeconds: 3 | |||
- name: resourcedeletionprotection.karmada.io |
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.
- name: resourcedeletionprotection.karmada.io | |
- name: resource deletion protection |
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.
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.
Yeah, you are right, I didn't notice that the name should be fully qualified.
Then, please ignore my suggestions. Let's keep the resourcedeletionprotection.karmada.io
.
76c6a08
to
f915995
Compare
Signed-off-by: Vacant2333 <vacant2333@gmail.com>
f915995
to
1df2420
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.
/approve
Leave final decisions to @chaunceyjiang @XiShanYongYe-Chang
[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 |
Thanks~ |
What type of PR is this?
/kind feature
Add the resource deletion protection
What this PR does / why we need it:
Proposal: #3802
Which issue(s) this PR fixes:
Part of ##3728
Special notes for your reviewer:

install by helm:
install by local-up-karmada.sh:

install by karmada-operator:

Does this PR introduce a user-facing change?: