-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
feat(scheduler): implement NodePreferAvoidPods as score plugin #83893
feat(scheduler): implement NodePreferAvoidPods as score plugin #83893
Conversation
8619d1b
to
459becc
Compare
459becc
to
2d7044a
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
/approve
var gotList framework.NodeScoreList | ||
for _, n := range test.nodes { | ||
nodeName := n.ObjectMeta.Name | ||
score, status := p.(framework.ScorePlugin).Score(state, test.pod, nodeName) | ||
if !status.IsSuccess() { | ||
t.Errorf("unexpected error: %v", status) | ||
} | ||
gotList = append(gotList, framework.NodeScore{Name: nodeName, Score: score}) | ||
} |
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.
This can be a function I guess. It would be nice if we have a plugins/testing/utils.go package that includes functions to aid testing like this one, which I expect all score plugins to use. We can do that in a follow up PR though.
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.
sure, will do
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, draveness 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 |
/retest |
the kubemark-big job has failed on 37 batch merges that included this PR /test pull-kubernetes-kubemark-e2e-gce-big |
/hold |
/hold cancel since the other one is on hold now. |
/kind cleanup
/assign @ahg-g
Which issue(s) this PR fixes:
Fixes #83770
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: