Merge pull request #90286 from smarterclayton/preempt

test: PriorityClass resource quota tests should not cause preemption
This commit is contained in:
Kubernetes Prow Robot 2020-04-20 10:42:04 -07:00 committed by GitHub
commit 2c80046ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1502,6 +1502,11 @@ func newTestPodForQuota(f *framework.Framework, name string, requests v1.Resourc
Name: name,
},
Spec: v1.PodSpec{
// prevent disruption to other test workloads in parallel test runs by ensuring the quota
// test pods don't get scheduled onto a node
NodeSelector: map[string]string{
"x-test.k8s.io/unsatisfiable": "not-schedulable",
},
Containers: []v1.Container{
{
Name: "pause",
@ -1523,6 +1528,11 @@ func newTestPodForQuotaWithPriority(f *framework.Framework, name string, request
Name: name,
},
Spec: v1.PodSpec{
// prevent disruption to other test workloads in parallel test runs by ensuring the quota
// test pods don't get scheduled onto a node
NodeSelector: map[string]string{
"x-test.k8s.io/unsatisfiable": "not-schedulable",
},
Containers: []v1.Container{
{
Name: "pause",