mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #90286 from smarterclayton/preempt
test: PriorityClass resource quota tests should not cause preemption
This commit is contained in:
commit
2c80046ed1
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user