-
Notifications
You must be signed in to change notification settings - Fork 916
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
fix: graceful-eviction still works after an unexpected restart of karmada-controller-manager #3475
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #3475 +/- ##
==========================================
- Coverage 53.76% 53.59% -0.18%
==========================================
Files 210 210
Lines 19123 19192 +69
==========================================
+ Hits 10281 10285 +4
- Misses 8290 8355 +65
Partials 552 552
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@chaunceyjiang Please add a release-note. /assign @Poor12 |
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, I think this patch is reasonable.
LGTM
BTY, I think we can add some comments to explain why we need to care about the create event. |
Good point! |
Hi @chaunceyjiang. I guess we may have missed a little bit of our analysis. It can be obtained from the analysis of: This triggers the karmada-scheduler to scheduler the rb/crb again and updates the status. graceful controller will watch the update event and continues to process the event. |
Why does the spec change? |
Note: This is caused by another bug. Normally, if the resources remain unchanged and the status of the member cluster remains unchanged, then rb will not change.
If this resource does not have a 'status' field, then it will not trigger a change in the resourceVersion of the resource |
pkg/controllers/gracefuleviction/crb_graceful_eviction_controller.go
Outdated
Show resolved
Hide resolved
…mada-controller-manager Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
thanks |
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 |
Hi @chaunceyjiang, maybe we need to cherry-pick this patch to the previous branch, can you help do it? |
fix: graceful-eviction still works after an unexpected restart of karmada-controller-manager
…#3475-origin-release-1.5 Automated cherry pick of #3475: fix: graceful-eviction still works after an unexpected
fix: graceful-eviction still works after an unexpected restart of karmada-controller-manager
Signed-off-by: chaunceyjiang chaunceyjiang@gmail.com
What type of PR is this?
/kind bug
What this PR does / why we need it:
When there are tasks in the GracefulEvictionTasks queue, graceful-eviction-controller will not work after restarting karmada-controller-manager.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: