mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
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:
commit
1a0b85502a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user