Skip to content

Commit

Permalink
Merge pull request #84036 from Huang-Wei/tbe-int-test-issue
Browse files Browse the repository at this point in the history
Ensure TaintBasedEviction int test not rely on TaintNodeByConditions
  • Loading branch information
k8s-ci-robot committed Oct 17, 2019
2 parents 4887b0c + fbcc3c1 commit 534051a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/integration/scheduler/taint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion test/integration/scheduler/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,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
}

Expand Down

0 comments on commit 534051a

Please sign in to comment.