Skip to content

Commit 2c80046

Browse files
authored
Merge pull request kubernetes#90286 from smarterclayton/preempt
test: PriorityClass resource quota tests should not cause preemption
2 parents 18b5c4d + 1e4e075 commit 2c80046

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/e2e/apimachinery/resource_quota.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,11 @@ func newTestPodForQuota(f *framework.Framework, name string, requests v1.Resourc
15021502
Name: name,
15031503
},
15041504
Spec: v1.PodSpec{
1505+
// prevent disruption to other test workloads in parallel test runs by ensuring the quota
1506+
// test pods don't get scheduled onto a node
1507+
NodeSelector: map[string]string{
1508+
"x-test.k8s.io/unsatisfiable": "not-schedulable",
1509+
},
15051510
Containers: []v1.Container{
15061511
{
15071512
Name: "pause",
@@ -1523,6 +1528,11 @@ func newTestPodForQuotaWithPriority(f *framework.Framework, name string, request
15231528
Name: name,
15241529
},
15251530
Spec: v1.PodSpec{
1531+
// prevent disruption to other test workloads in parallel test runs by ensuring the quota
1532+
// test pods don't get scheduled onto a node
1533+
NodeSelector: map[string]string{
1534+
"x-test.k8s.io/unsatisfiable": "not-schedulable",
1535+
},
15261536
Containers: []v1.Container{
15271537
{
15281538
Name: "pause",

0 commit comments

Comments
 (0)