Skip to content

Commit

Permalink
Merge pull request #8859 from killianmuldoon/pr-always-build-kind
Browse files Browse the repository at this point in the history
🐛 Always build Kind images for upgrade tests
  • Loading branch information
k8s-ci-robot authored Jun 16, 2023
2 parents afcb8d3 + 4593ae8 commit fe2d9d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/ci-e2e-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fe2d9d8

Please sign in to comment.