From 51c371435f7413c83f3001a4da5255dd3dadc218 Mon Sep 17 00:00:00 2001 From: Nic Cope Date: Wed, 8 Sep 2021 05:46:52 +0000 Subject: [PATCH] Use a newer kind version 2c73c9001026fa71ffd46c985fb541f83757ff95 I'm blindly copying this from the above commit. It's the only difference I can find between master (where e2e tests pass) and release-0.18 (where they don't). Signed-off-by: Nic Cope --- Makefile | 6 +++++- cluster/local/integration_tests.sh | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 360571bf29..9922ea16c8 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,10 @@ PLATFORMS ?= linux_amd64 linux_arm64 CODE_GENERATOR_COMMIT ?= cac5654b7bb64c8f754ad9af01799ef70d9541b6 GENERATED_SERVICES="apigatewayv2,cloudfront,dynamodb,efs,kms,lambda,rds,secretsmanager,servicediscovery,sfn" +# kind-related versions +KIND_VERSION ?= v0.11.1 +KIND_NODE_IMAGE_TAG ?= v1.19.11 + # -include will silently skip missing files, which allows us # to load those files with a target in the Makefile. If only # "include" was used, the make command would fail and refuse @@ -89,7 +93,7 @@ e2e.run: test-integration # Run integration tests. test-integration: $(KIND) $(KUBECTL) $(HELM3) @$(INFO) running integration tests using kind $(KIND_VERSION) - @$(ROOT_DIR)/cluster/local/integration_tests.sh || $(FAIL) + @KIND_NODE_IMAGE_TAG=${KIND_NODE_IMAGE_TAG} $(ROOT_DIR)/cluster/local/integration_tests.sh || $(FAIL) @$(OK) integration tests passed # Update the submodules, such as the common build scripts. diff --git a/cluster/local/integration_tests.sh b/cluster/local/integration_tests.sh index 84cc87304c..7e84c8c7f3 100755 --- a/cluster/local/integration_tests.sh +++ b/cluster/local/integration_tests.sh @@ -71,7 +71,8 @@ echo "created cache dir at ${CACHE_PATH}" docker save "${BUILD_IMAGE}" -o "${CACHE_PATH}/${PACKAGE_NAME}.xpkg" && chmod 644 "${CACHE_PATH}/${PACKAGE_NAME}.xpkg" # create kind cluster with extra mounts -echo_step "creating k8s cluster using kind" +KIND_NODE_IMAGE="kindest/node:${KIND_NODE_IMAGE_TAG}" +echo_step "creating k8s cluster using kind ${KIND_VERSION} and node image ${KIND_NODE_IMAGE}" KIND_CONFIG="$( cat <