Skip to content

Commit fe2d9d8

Browse files
authored
Merge pull request #8859 from killianmuldoon/pr-always-build-kind
🐛 Always build Kind images for upgrade tests
2 parents afcb8d3 + 4593ae8 commit fe2d9d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/ci-e2e-lib.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ kind::prepareKindestImage() {
104104
# Try to pre-pull the image
105105
kind::prepullImage "kindest/node:$version"
106106

107-
# if pre-pull failed, falling back to local build
108-
if [[ "$retVal" != 0 ]]; then
109-
echo "+ image for Kuberentes $version is not available in docker hub, trying local build"
107+
# if pre-pull failed, or ALWAYS_BUILD_KIND_IMAGES is true build the images locally.
108+
if [[ "$retVal" != 0 ]] || [[ "$ALWAYS_BUILD_KIND_IMAGES" = "true" ]]; then
109+
echo "+ building image for Kuberentes $version locally. This is either because the image wasn't available in docker hub or ALWAYS_BUILD_KIND_IMAGES is set to true"
110110
kind::buildNodeImage "$version"
111111
fi
112112
}

0 commit comments

Comments
 (0)