mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #80545 from spiffxp/promote-preemption-tests
Promote SchedulerPreemption e2e tests to Conformance
This commit is contained in:
commit
bb11561ace
16
test/conformance/testdata/conformance.yaml
vendored
16
test/conformance/testdata/conformance.yaml
vendored
@ -1919,6 +1919,22 @@
|
|||||||
number of Replicas.
|
number of Replicas.
|
||||||
release: v1.19
|
release: v1.19
|
||||||
file: test/e2e/scheduling/preemption.go
|
file: test/e2e/scheduling/preemption.go
|
||||||
|
- testname: Scheduler, Basic Preemption
|
||||||
|
codename: '[sig-scheduling] SchedulerPreemption [Serial] validates basic preemption
|
||||||
|
works [Conformance]'
|
||||||
|
description: When a higher priority pod is created and no node with enough resources
|
||||||
|
is found, the scheduler MUST preempt a lower priority pod and schedule the high
|
||||||
|
priority pod.
|
||||||
|
release: v1.19
|
||||||
|
file: test/e2e/scheduling/preemption.go
|
||||||
|
- testname: Scheduler, Preemption for critical pod
|
||||||
|
codename: '[sig-scheduling] SchedulerPreemption [Serial] validates lower priority
|
||||||
|
pod preemption by critical pod [Conformance]'
|
||||||
|
description: When a critical pod is created and no node with enough resources is
|
||||||
|
found, the scheduler MUST preempt a lower priority pod to schedule the critical
|
||||||
|
pod.
|
||||||
|
release: v1.19
|
||||||
|
file: test/e2e/scheduling/preemption.go
|
||||||
- testname: ConfigMap Volume, text data, binary data
|
- testname: ConfigMap Volume, text data, binary data
|
||||||
codename: '[sig-storage] ConfigMap binary data should be reflected in volume [NodeConformance]
|
codename: '[sig-storage] ConfigMap binary data should be reflected in volume [NodeConformance]
|
||||||
[Conformance]'
|
[Conformance]'
|
||||||
|
@ -103,10 +103,14 @@ var _ = SIGDescribe("SchedulerPreemption [Serial]", func() {
|
|||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
})
|
})
|
||||||
|
|
||||||
// This test verifies that when a higher priority pod is created and no node with
|
/*
|
||||||
// enough resources is found, scheduler preempts a lower priority pod to schedule
|
Release : v1.19
|
||||||
// the high priority pod.
|
Testname: Scheduler, Basic Preemption
|
||||||
ginkgo.It("validates basic preemption works", func() {
|
Description: When a higher priority pod is created and no node with enough
|
||||||
|
resources is found, the scheduler MUST preempt a lower priority pod and
|
||||||
|
schedule the high priority pod.
|
||||||
|
*/
|
||||||
|
framework.ConformanceIt("validates basic preemption works", func() {
|
||||||
var podRes v1.ResourceList
|
var podRes v1.ResourceList
|
||||||
|
|
||||||
// Create one pod per node that uses a lot of the node's resources.
|
// Create one pod per node that uses a lot of the node's resources.
|
||||||
@ -186,10 +190,14 @@ var _ = SIGDescribe("SchedulerPreemption [Serial]", func() {
|
|||||||
framework.ExpectEqual(podPreempted, true)
|
framework.ExpectEqual(podPreempted, true)
|
||||||
})
|
})
|
||||||
|
|
||||||
// This test verifies that when a critical pod is created and no node with
|
/*
|
||||||
// enough resources is found, scheduler preempts a lower priority pod to schedule
|
Release : v1.19
|
||||||
// this critical pod.
|
Testname: Scheduler, Preemption for critical pod
|
||||||
ginkgo.It("validates lower priority pod preemption by critical pod", func() {
|
Description: When a critical pod is created and no node with enough
|
||||||
|
resources is found, the scheduler MUST preempt a lower priority pod to
|
||||||
|
schedule the critical pod.
|
||||||
|
*/
|
||||||
|
framework.ConformanceIt("validates lower priority pod preemption by critical pod", func() {
|
||||||
var podRes v1.ResourceList
|
var podRes v1.ResourceList
|
||||||
|
|
||||||
ginkgo.By("Create pods that use 2/3 of node resources.")
|
ginkgo.By("Create pods that use 2/3 of node resources.")
|
||||||
|
Loading…
Reference in New Issue
Block a user