-
Notifications
You must be signed in to change notification settings - Fork 669
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
Fix early return from PodFitsAnyNode check #256
Conversation
/priority critical-urgent |
@@ -115,7 +115,6 @@ func PodFitsAnyNode(pod *v1.Pod, nodes []*v1.Node) bool { | |||
klog.V(2).Infof("Pod %v can possibly be scheduled on %v", pod.Name, node.Name) | |||
return true | |||
} | |||
return false |
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.
You can drop entire if ok
block, ok has to be true at this point.
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.
true, updated
0713da7
to
9b7891b
Compare
/lgtm |
9b7891b
to
e95e429
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.
Thank you for working on this @damemi
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damemi, ravisantoshgudimetla 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 |
Fix early return from PodFitsAnyNode check
The
PodFitsAnyNode
function returnedfalse
early if it hit any node with matched the selectors but was also unschedulable (before finding a suitable node).This PR also includes vendor updates that weren't committed earlier, in order to compile.