-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
Add PodDisruptionBudget to scheduler cache. #53914
Conversation
@k82cn If you'd like to work on adding support for PDB to preemption, you may want to send a follow-up PR that checks PDB during preemption and node scoring. |
sure, I'll handle PDB part for preemption. |
@@ -605,6 +621,56 @@ func (c *ConfigFactory) deleteNodeFromCache(obj interface{}) { | |||
} | |||
} | |||
|
|||
func (c *ConfigFactory) addPDBToCache(obj interface{}) { |
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.
I think it's configFactory
. Seems you need a rebase of latest change?
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.
Yes. Just fixed it.
6ae3c3d
to
1b0eed6
Compare
LGTM :). |
/retest |
2 similar comments
/retest |
/retest |
@bsalamat: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
@k82cn I had to fix scheduler_perf/util.go and add the new parameter for scheduler initialization. Could you please take another look? |
/lgtm |
@liggitt for approval of the changes in |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bsalamat, k82cn, liggitt Associated issue: 53913 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 53903, 53914, 54374). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
This is the first step to add support for PodDisruptionBudget during preemption. This PR adds PDB to scheduler cache.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer: None
Release note:
ref/ #53913