Skip to content

Commit 18600f4

Browse files
committedNov 13, 2024
Min cpu limit resize e2e test
1 parent 8342d39 commit 18600f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎test/e2e/common/node/pod_resize.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -584,20 +584,20 @@ func doPodResizeTests(f *framework.Framework) {
584584
},
585585
},
586586
{
587-
name: "Burstable QoS pod, one container with cpu requests - resize with equivalent request",
587+
name: "Burstable QoS pod, one container with cpu requests and limits - resize with equivalents",
588588
containers: []e2epod.ResizableContainerInfo{
589589
{
590590
Name: "c1",
591-
Resources: &e2epod.ContainerResources{CPUReq: "2m"},
591+
Resources: &e2epod.ContainerResources{CPUReq: "2m", CPULim: "10m"},
592592
},
593593
},
594594
patchString: `{"spec":{"containers":[
595-
{"name":"c1", "resources":{"requests":{"cpu":"1m"}}}
595+
{"name":"c1", "resources":{"requests":{"cpu":"1m"},"limits":{"cpu":"5m"}}}
596596
]}}`,
597597
expected: []e2epod.ResizableContainerInfo{
598598
{
599599
Name: "c1",
600-
Resources: &e2epod.ContainerResources{CPUReq: "1m"},
600+
Resources: &e2epod.ContainerResources{CPUReq: "1m", CPULim: "5m"},
601601
},
602602
},
603603
},

0 commit comments

Comments
 (0)
Please sign in to comment.