-
Notifications
You must be signed in to change notification settings - Fork 341
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 migration object limiter for namespace #2068
koord-descheduler: add migration object limiter for namespace #2068
Conversation
37e3272
to
a9a9d87
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2068 +/- ##
==========================================
+ Coverage 67.90% 67.94% +0.03%
==========================================
Files 441 441
Lines 41551 41589 +38
==========================================
+ Hits 28217 28258 +41
+ Misses 10903 10898 -5
- Partials 2431 2433 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
a9a9d87
to
8142750
Compare
/hold |
8142750
to
0f4dfd8
Compare
0f4dfd8
to
cd139f3
Compare
/unhold |
cd139f3
to
f8c322b
Compare
Signed-off-by: songtao98 <[email protected]>
f8c322b
to
72f9108
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hormes 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 |
Ⅰ. Describe what this PR does
This PR add a new type of migration object limiter for namespace.
To implement this, the arbitrator of MigrationController traverses all objectLimiters and judge a pod through limiters enabled one by one.
When a pod is judged by Workload limiter, first try to get its
ownerReference
, if there is noownerReference
of this pod, just skip it.When a pod is judged by Namespace limiter, judge it by number of migrated pods in this namespace.
The similar logic is implemented in
trackEvictedPod
function, too.Ⅱ. Does this pull request fix one issue?
fixes #2051
Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist
make test