Skip to content

Commit ef0fcd3

Browse files
committed
fix conflicts
1 parent d490383 commit ef0fcd3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/e2e_node/eviction_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ var _ = SIGDescribe("PriorityMemoryEvictionOrdering", framework.WithSlow(), fram
443443
pod.Spec.Containers = append(pod.Spec.Containers, v1.Container{
444444
Name: pod.Spec.Containers[0].Name + "-static-allocator",
445445
Image: imageutils.GetE2EImage(imageutils.Agnhost),
446-
ImagePullPolicy: "Always",
446+
ImagePullPolicy: v1.PullIfNotPresent,
447447
Args: []string{"stress", "--mem-alloc-size", "2Mi", "--mem-alloc-sleep", "1s", "--mem-total", fmt.Sprintf("%d", *nodeSwapInfo.Capacity)},
448448
})
449449
},
@@ -815,7 +815,7 @@ func runEvictionTest(f *framework.Framework, pressureTimeout time.Duration, expe
815815
{
816816
Image: imageutils.GetPauseImageName(),
817817
Name: podName,
818-
ImagePullPolicy: "Always",
818+
ImagePullPolicy: v1.PullIfNotPresent,
819819
},
820820
},
821821
},
@@ -1235,8 +1235,9 @@ func podWithCommand(volumeSource *v1.VolumeSource, resources v1.ResourceRequirem
12351235
"-c",
12361236
fmt.Sprintf("i=0; while [ $i -lt %d ]; do %s i=$(($i+1)); done; while true; do sleep 5; done", iterations, command),
12371237
},
1238-
Resources: resources,
1239-
VolumeMounts: volumeMounts,
1238+
Resources: resources,
1239+
VolumeMounts: volumeMounts,
1240+
ImagePullPolicy: v1.PullIfNotPresent,
12401241
},
12411242
},
12421243
Volumes: volumes,
@@ -1283,7 +1284,7 @@ func getMemhogPod(podName string, ctnName string, res v1.ResourceRequirements) *
12831284
{
12841285
Name: ctnName,
12851286
Image: imageutils.GetE2EImage(imageutils.Agnhost),
1286-
ImagePullPolicy: "Always",
1287+
ImagePullPolicy: v1.PullIfNotPresent,
12871288
Env: env,
12881289
// 60 min timeout * 60s / tick per 10s = 360 ticks before timeout => ~11.11Mi/tick
12891290
// to fill ~4Gi of memory, so initial ballpark 12Mi/tick.

0 commit comments

Comments
 (0)