File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -566,6 +566,24 @@ func doPodResizeTests(f *framework.Framework) {
566
566
},
567
567
},
568
568
},
569
+ {
570
+ name : "Burstable QoS pod, one container with cpu requests - resize with equivalent request" ,
571
+ containers : []e2epod.ResizableContainerInfo {
572
+ {
573
+ Name : "c1" ,
574
+ Resources : & e2epod.ContainerResources {CPUReq : "2m" },
575
+ },
576
+ },
577
+ patchString : `{"spec":{"containers":[
578
+ {"name":"c1", "resources":{"requests":{"cpu":"1m"}}}
579
+ ]}}` ,
580
+ expected : []e2epod.ResizableContainerInfo {
581
+ {
582
+ Name : "c1" ,
583
+ Resources : & e2epod.ContainerResources {CPUReq : "1m" },
584
+ },
585
+ },
586
+ },
569
587
{
570
588
name : "Guaranteed QoS pod, one container - increase CPU (NotRequired) & memory (RestartContainer)" ,
571
589
testRollback : true ,
@@ -783,6 +801,22 @@ func doPodResizeTests(f *framework.Framework) {
783
801
},
784
802
addExtendedResource : true ,
785
803
},
804
+ {
805
+ name : "BestEffort QoS pod - empty resize" ,
806
+ containers : []e2epod.ResizableContainerInfo {
807
+ {
808
+ Name : "c1" ,
809
+ Resources : & e2epod.ContainerResources {},
810
+ },
811
+ },
812
+ patchString : `{}` ,
813
+ expected : []e2epod.ResizableContainerInfo {
814
+ {
815
+ Name : "c1" ,
816
+ Resources : & e2epod.ContainerResources {},
817
+ },
818
+ },
819
+ },
786
820
}
787
821
788
822
for idx := range tests {
You can’t perform that action at this time.
0 commit comments