mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-28 06:29:29 +01:00
refactor(node_taint_test): inline node3
This commit is contained in:
@@ -114,7 +114,6 @@ func addTolerationToPod(pod *v1.Pod, key, value string, index int, effect v1.Tai
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestDeletePodsViolatingNodeTaints(t *testing.T) {
|
func TestDeletePodsViolatingNodeTaints(t *testing.T) {
|
||||||
node3 := buildTestNode(nodeName3, withDatacenterEastLabel)
|
|
||||||
node4 := buildTestNode(nodeName4, withUnschedulable)
|
node4 := buildTestNode(nodeName4, withUnschedulable)
|
||||||
|
|
||||||
node5 := buildTestNode(nodeName5, withPreferNoScheduleTestTaint1)
|
node5 := buildTestNode(nodeName5, withPreferNoScheduleTestTaint1)
|
||||||
@@ -325,7 +324,7 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) {
|
|||||||
pods: []*v1.Pod{p1, p3, p12},
|
pods: []*v1.Pod{p1, p3, p12},
|
||||||
nodes: []*v1.Node{
|
nodes: []*v1.Node{
|
||||||
buildTestNode(nodeName1, withTestTaint1),
|
buildTestNode(nodeName1, withTestTaint1),
|
||||||
node3,
|
buildTestNode(nodeName3, withDatacenterEastLabel),
|
||||||
},
|
},
|
||||||
expectedEvictedPodCount: 0, // p2 gets evicted
|
expectedEvictedPodCount: 0, // p2 gets evicted
|
||||||
nodeFit: true,
|
nodeFit: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user