mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #98703 from Huang-Wei/untolerated-regress
Fix a bug that untolerated variable is used as tolerated
This commit is contained in:
commit
7655badece
@ -266,8 +266,8 @@ func isNodeUntainted(node *v1.Node) bool {
|
||||
n = nodeCopy
|
||||
}
|
||||
|
||||
_, tolerated := v1helper.FindMatchingUntoleratedTaint(n.Spec.Taints, fakePod.Spec.Tolerations, func(t *v1.Taint) bool {
|
||||
_, untolerated := v1helper.FindMatchingUntoleratedTaint(n.Spec.Taints, fakePod.Spec.Tolerations, func(t *v1.Taint) bool {
|
||||
return t.Effect == v1.TaintEffectNoExecute || t.Effect == v1.TaintEffectNoSchedule
|
||||
})
|
||||
return tolerated
|
||||
return !untolerated
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user