Skip to content

Commit 75fd98a

Browse files
author
Per Goncalves da Silva
committed
ensure e2e fixture images are only pulled if not present
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 35c7dd4 commit 75fd98a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/lib/image/image.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,12 @@ func InferImagePullPolicy(image string) corev1.PullPolicy {
1313
if strings.Contains(image, "@") {
1414
return corev1.PullIfNotPresent
1515
}
16+
17+
// Ensure test registry images are pulled only if needed
18+
// These will normally be loaded through kind load docker-image
19+
// This is also helps support the e2e fixture image re-build flow (see e2e GHA)
20+
if strings.HasPrefix(image, "quay.io/olmtest/") {
21+
return corev1.PullIfNotPresent
22+
}
1623
return corev1.PullAlways
1724
}

0 commit comments

Comments
 (0)