mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Ensure TaintBasedEviction int test not rely on TaintNodeByConditions
This commit is contained in:
parent
6a5f0e6eda
commit
fbcc3c183a
@ -689,7 +689,7 @@ func TestTaintBasedEvictions(t *testing.T) {
|
||||
0.55, // Unhealthy zone threshold
|
||||
true, // Run taint manager
|
||||
true, // Use taint based evictions
|
||||
false, // Enabled TaintNodeByCondition feature
|
||||
true, // Enabled TaintNodeByCondition feature
|
||||
)
|
||||
if err != nil {
|
||||
t.Errorf("Failed to create node controller: %v", err)
|
||||
|
@ -381,7 +381,8 @@ func nodeTainted(cs clientset.Interface, nodeName string, taints []v1.Taint) wai
|
||||
return false, err
|
||||
}
|
||||
|
||||
if len(taints) != len(node.Spec.Taints) {
|
||||
// node.Spec.Taints may have more taints
|
||||
if len(taints) > len(node.Spec.Taints) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user