Merge pull request #41068 from gmarek/sched-taint

Automatic merge from submit-queue (batch tested with PRs 41064, 41090, 41068, 41073, 40882)

Scheduler doesn't schedule Pods not tolerating NoExecute Taints

cc @kevin-wangzefeng
This commit is contained in:
Kubernetes Submit Queue 2017-02-07 13:46:37 -08:00 committed by GitHub
commit 1a0b85502a

View File

@ -1159,8 +1159,8 @@ func PodToleratesNodeTaints(pod *v1.Pod, meta interface{}, nodeInfo *schedulerca
}
if v1.TolerationsTolerateTaintsWithFilter(tolerations, taints, func(t *v1.Taint) bool {
// PodToleratesNodeTaints is only interested in NoSchedule taints.
return t.Effect == v1.TaintEffectNoSchedule
// PodToleratesNodeTaints is only interested in NoSchedule and NoExecute taints.
return t.Effect == v1.TaintEffectNoSchedule || t.Effect == v1.TaintEffectNoExecute
}) {
return true, nil, nil
}