From 4305c65ff746600943838a7eb2ca531b2f2b01bb Mon Sep 17 00:00:00 2001 From: Andrew Bays Date: Mon, 22 Jun 2026 10:31:28 -0400 Subject: [PATCH] Set ImagePullPolicy to IfNotPresent on test pods BuildTestPod creates raw Pods directly without going through lib-common workload helpers, so the recently added pod.SetPullPolicyDefaults does not apply. When ImagePullPolicy is not explicitly set and the image tag is "latest" or unset, Kubernetes defaults the policy to Always. Explicitly set PullIfNotPresent to avoid unnecessary image pulls. Co-Authored-By: Claude Opus 4.6 --- internal/util/common.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/util/common.go b/internal/util/common.go index 8d4027c7..bbd6fc4f 100644 --- a/internal/util/common.go +++ b/internal/util/common.go @@ -117,6 +117,7 @@ func BuildTestPod( { Name: containerName, Image: containerImage, + ImagePullPolicy: corev1.PullIfNotPresent, Args: []string{}, Env: env.MergeEnvs([]corev1.EnvVar{}, envVars), VolumeMounts: volumeMounts,