Skip to content

Commit

Permalink
Min cpu limit resize e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
tallclair committed Nov 13, 2024
1 parent 8342d39 commit 18600f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/common/node/pod_resize.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,20 +584,20 @@ func doPodResizeTests(f *framework.Framework) {
},
},
{
name: "Burstable QoS pod, one container with cpu requests - resize with equivalent request",
name: "Burstable QoS pod, one container with cpu requests and limits - resize with equivalents",
containers: []e2epod.ResizableContainerInfo{
{
Name: "c1",
Resources: &e2epod.ContainerResources{CPUReq: "2m"},
Resources: &e2epod.ContainerResources{CPUReq: "2m", CPULim: "10m"},
},
},
patchString: `{"spec":{"containers":[
{"name":"c1", "resources":{"requests":{"cpu":"1m"}}}
{"name":"c1", "resources":{"requests":{"cpu":"1m"},"limits":{"cpu":"5m"}}}
]}}`,
expected: []e2epod.ResizableContainerInfo{
{
Name: "c1",
Resources: &e2epod.ContainerResources{CPUReq: "1m"},
Resources: &e2epod.ContainerResources{CPUReq: "1m", CPULim: "5m"},
},
},
},
Expand Down

0 comments on commit 18600f4

Please sign in to comment.