@@ -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
},
@@ -815,7 +815,7 @@ func runEvictionTest(f *framework.Framework, pressureTimeout time.Duration, expe
815
815
{
816
816
Image : imageutils .GetPauseImageName (),
817
817
Name : podName ,
818
- ImagePullPolicy : "Always" ,
818
+ ImagePullPolicy : v1 . PullIfNotPresent ,
819
819
},
820
820
},
821
821
},
@@ -1235,8 +1235,9 @@ func podWithCommand(volumeSource *v1.VolumeSource, resources v1.ResourceRequirem
1235
1235
"-c" ,
1236
1236
fmt .Sprintf ("i=0; while [ $i -lt %d ]; do %s i=$(($i+1)); done; while true; do sleep 5; done" , iterations , command ),
1237
1237
},
1238
- Resources : resources ,
1239
- VolumeMounts : volumeMounts ,
1238
+ Resources : resources ,
1239
+ VolumeMounts : volumeMounts ,
1240
+ ImagePullPolicy : v1 .PullIfNotPresent ,
1240
1241
},
1241
1242
},
1242
1243
Volumes : volumes ,
@@ -1283,7 +1284,7 @@ func getMemhogPod(podName string, ctnName string, res v1.ResourceRequirements) *
1283
1284
{
1284
1285
Name : ctnName ,
1285
1286
Image : imageutils .GetE2EImage (imageutils .Agnhost ),
1286
- ImagePullPolicy : "Always" ,
1287
+ ImagePullPolicy : v1 . PullIfNotPresent ,
1287
1288
Env : env ,
1288
1289
// 60 min timeout * 60s / tick per 10s = 360 ticks before timeout => ~11.11Mi/tick
1289
1290
// to fill ~4Gi of memory, so initial ballpark 12Mi/tick.
0 commit comments