From edc236aa9d2f950fd1161900b81a40674e48dc4a Mon Sep 17 00:00:00 2001 From: killianmuldoon Date: Thu, 15 Jun 2023 09:31:18 +0100 Subject: [PATCH] Always build Kind images for upgrade tests Signed-off-by: killianmuldoon --- scripts/ci-e2e-lib.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ci-e2e-lib.sh b/scripts/ci-e2e-lib.sh index dc6a735d5c33..6ec03d70a07d 100644 --- a/scripts/ci-e2e-lib.sh +++ b/scripts/ci-e2e-lib.sh @@ -104,9 +104,9 @@ kind::prepareKindestImage() { # Try to pre-pull the image kind::prepullImage "kindest/node:$version" - # if pre-pull failed, falling back to local build - if [[ "$retVal" != 0 ]]; then - echo "+ image for Kuberentes $version is not available in docker hub, trying local build" + # if pre-pull failed, or ALWAYS_BUILD_KIND_IMAGES is true build the images locally. + if [[ "$retVal" != 0 ]] || [[ "$ALWAYS_BUILD_KIND_IMAGES" = "true" ]]; then + 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" kind::buildNodeImage "$version" fi }