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
Query nodes in Schedule only when there are no predicates #80533
Query nodes in Schedule only when there are no predicates #80533
Conversation
Hi @alculquicondor. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/hold Will rebase once #80220 is merged |
394e89c
to
7102306
Compare
/hold cancel |
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.
/ok-to-test
/priority backlog
/lgtm
Thanks!
var filtered []*v1.Node | ||
failedPredicateMap := FailedPredicateMap{} | ||
|
||
if len(g.predicates) == 0 { | ||
filtered = nodes | ||
var err error | ||
filtered, err = nodeLister.ListNodes() |
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.
compile error from the test
pkg/scheduler/core/generic_scheduler.go:463:17: assignment mismatch: 2 variables but nodeLister.ListNodes returns 1 values
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.
Ups, missed from the rebase.
Signed-off-by: Aldo Culquicondor <acondor@google.com>
7102306
to
e703226
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.
/lgtm
Thanks @alculquicondor
/lgtm thanks Aldo. @bsalamat this is a followup to the cleanup PR that Aldo sent earlier, it addresses one of the comments on that PR |
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: alculquicondor, bsalamat 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 |
/kind cleanup
What this PR does / why we need it:
This is a small optimization. The list of nodes is only needed in
findNodesThatFit
when there are no predicates.Which issue(s) this PR fixes:
Fixes #80322
Special notes for your reviewer:
Depends on PR #80220. Review only latest commit.
Does this PR introduce a user-facing change?: