@@ -443,7 +443,7 @@ var _ = SIGDescribe("PriorityMemoryEvictionOrdering", framework.WithSlow(), fram
443
443
pod .Spec .Containers = append (pod .Spec .Containers , v1.Container {
444
444
Name : pod .Spec .Containers [0 ].Name + "-static-allocator" ,
445
445
Image : imageutils .GetE2EImage (imageutils .Agnhost ),
446
- ImagePullPolicy : "Always" ,
446
+ ImagePullPolicy : v1 . PullIfNotPresent ,
447
447
Args : []string {"stress" , "--mem-alloc-size" , "2Mi" , "--mem-alloc-sleep" , "1s" , "--mem-total" , fmt .Sprintf ("%d" , * nodeSwapInfo .Capacity )},
448
448
})
449
449
},
@@ -813,8 +813,9 @@ func runEvictionTest(f *framework.Framework, pressureTimeout time.Duration, expe
813
813
RestartPolicy : v1 .RestartPolicyNever ,
814
814
Containers : []v1.Container {
815
815
{
816
- Image : imageutils .GetPauseImageName (),
817
- Name : podName ,
816
+ Image : imageutils .GetPauseImageName (),
817
+ Name : podName ,
818
+ ImagePullPolicy : v1 .PullIfNotPresent ,
818
819
},
819
820
},
820
821
},
@@ -1234,8 +1235,9 @@ func podWithCommand(volumeSource *v1.VolumeSource, resources v1.ResourceRequirem
1234
1235
"-c" ,
1235
1236
fmt .Sprintf ("i=0; while [ $i -lt %d ]; do %s i=$(($i+1)); done; while true; do sleep 5; done" , iterations , command ),
1236
1237
},
1237
- Resources : resources ,
1238
- VolumeMounts : volumeMounts ,
1238
+ Resources : resources ,
1239
+ VolumeMounts : volumeMounts ,
1240
+ ImagePullPolicy : v1 .PullIfNotPresent ,
1239
1241
},
1240
1242
},
1241
1243
Volumes : volumes ,
@@ -1282,7 +1284,7 @@ func getMemhogPod(podName string, ctnName string, res v1.ResourceRequirements) *
1282
1284
{
1283
1285
Name : ctnName ,
1284
1286
Image : imageutils .GetE2EImage (imageutils .Agnhost ),
1285
- ImagePullPolicy : "Always" ,
1287
+ ImagePullPolicy : v1 . PullIfNotPresent ,
1286
1288
Env : env ,
1287
1289
// 60 min timeout * 60s / tick per 10s = 360 ticks before timeout => ~11.11Mi/tick
1288
1290
// to fill ~4Gi of memory, so initial ballpark 12Mi/tick.
0 commit comments