-
Notifications
You must be signed in to change notification settings - Fork 264
Check node spec for unschedulable as well #455
Check node spec for unschedulable as well #455
Conversation
@@ -1549,6 +1549,14 @@ func isPodBestEffort(pod *v1.Pod) bool { | |||
return v1qos.GetPodQOS(pod) == v1.PodQOSBestEffort | |||
} | |||
|
|||
// Check to see if node spec is set to Schedulable or not | |||
func CheckNodeUnschedulable(pod *v1.Pod, nodeInfo *schedulercache.NodeInfo) (bool, []algorithm.PredicateFailureReason, error) { |
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.
let move this func to pkg/scheduler/plugins/predicates/predicates.go
; we do not modify files in vendor directory :)
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 overall, just nits :)
/approve please help to address the above comments, and then I'll add |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jeefy, k82cn 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 |
59e2981
to
e0b287f
Compare
My bad, I know better. :) Fixed/Re-tested! Thanks! |
Hey @jeefy, TravisCI finished with status TravisBuddy Request Identifier: ffe65540-d41f-11e8-8287-c1a5f8036931 |
/lgtm |
Check node spec for unschedulable as well
Check node spec for unschedulable as well
Check node spec for unschedulable as well
Should address #453
Tested on minikube w/ v1.12.1
Let me know if I did something weird, first dive into this codebase. :)
Thanks!