Skip to content

use pull if not present for eviction tests #133359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions test/e2e_node/eviction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ var _ = SIGDescribe("PriorityMemoryEvictionOrdering", framework.WithSlow(), fram
pod.Spec.Containers = append(pod.Spec.Containers, v1.Container{
Name: pod.Spec.Containers[0].Name + "-static-allocator",
Image: imageutils.GetE2EImage(imageutils.Agnhost),
ImagePullPolicy: "Always",
ImagePullPolicy: v1.PullIfNotPresent,
Args: []string{"stress", "--mem-alloc-size", "2Mi", "--mem-alloc-sleep", "1s", "--mem-total", fmt.Sprintf("%d", *nodeSwapInfo.Capacity)},
})
},
Expand Down Expand Up @@ -815,7 +815,7 @@ func runEvictionTest(f *framework.Framework, pressureTimeout time.Duration, expe
{
Image: imageutils.GetPauseImageName(),
Name: podName,
ImagePullPolicy: "Always",
ImagePullPolicy: v1.PullIfNotPresent,
},
},
},
Expand Down Expand Up @@ -1235,8 +1235,9 @@ func podWithCommand(volumeSource *v1.VolumeSource, resources v1.ResourceRequirem
"-c",
fmt.Sprintf("i=0; while [ $i -lt %d ]; do %s i=$(($i+1)); done; while true; do sleep 5; done", iterations, command),
},
Resources: resources,
VolumeMounts: volumeMounts,
Resources: resources,
VolumeMounts: volumeMounts,
ImagePullPolicy: v1.PullIfNotPresent,
},
},
Volumes: volumes,
Expand Down Expand Up @@ -1283,7 +1284,7 @@ func getMemhogPod(podName string, ctnName string, res v1.ResourceRequirements) *
{
Name: ctnName,
Image: imageutils.GetE2EImage(imageutils.Agnhost),
ImagePullPolicy: "Always",
ImagePullPolicy: v1.PullIfNotPresent,
Env: env,
// 60 min timeout * 60s / tick per 10s = 360 ticks before timeout => ~11.11Mi/tick
// to fill ~4Gi of memory, so initial ballpark 12Mi/tick.
Expand Down