-
Notifications
You must be signed in to change notification settings - Fork 337
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
koord-descheduler: add arbitration to migration controller #1651
koord-descheduler: add arbitration to migration controller #1651
Conversation
Signed-off-by: baowj <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1651 +/- ##
==========================================
+ Coverage 65.82% 66.01% +0.19%
==========================================
Files 375 385 +10
Lines 39549 41569 +2020
==========================================
+ Hits 26032 27442 +1410
- Misses 11630 12109 +479
- Partials 1887 2018 +131
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
1.update klog to return; 2.always enable arbitration; Signed-off-by: baowj <[email protected]>
1.move codes from `migration/filter.go` to `migration/arbitrator/filter.go` Signed-off-by: baowj <[email protected]>
1.remove AnnotationPassedArbitration's deletion. Signed-off-by: baowj <[email protected]>
@ZiMengSheng PTAL |
1.remove lock in migration Reconciler; 2.move codes from migration/filter.go to migration/controller.go; 3.remove some comments; 4.remove explicit initialization of mu in arbitration/filter.go; Signed-off-by: baowj <[email protected]>
1.make filter a member variable of arbitrator; Signed-off-by: baowj-678 <[email protected]>
1.add passed arbitration PodMigrationJob record map. Signed-off-by: baowj-678 <[email protected]>
1.move eventHandler to a single file; 2.rename Add & Delete; 3.use local record PassedArbitration status only; 4.add nonRetryablePodFilter/retryablePodFilter to Filter func. Signed-off-by: baowj <[email protected]>
1.add pod arbitrating annotation; 2.rename arbitrationHandler variables; 3.update comments; Signed-off-by: baowj <[email protected]>
1.update PhaseAndAnnotation to expectedPhaseContext; 2.convert Object to PMJ instead using client to get; Signed-off-by: baowj <[email protected]>
1.rename some variables and structure; Signed-off-by: baowj <[email protected]>
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eahydra 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 |
…or-sh#1651) Signed-off-by: baowj <[email protected]> Signed-off-by: baowj-678 <[email protected]>
Ⅰ. Describe what this PR does
Add the arbitration to migration controller according to #1454.
Ⅱ. Does this pull request fix one issue?
Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist
make test