Skip to content

Commit

Permalink
add support for kind v0.26.0 (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrove-oss authored Dec 17, 2024
1 parent c8e2c4a commit 49ed460
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions hack/e2e-util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export LOG_LEVEL=${TEST_LOG_LEVEL:-2}
export CLEANUP_CLUSTER=${CLEANUP_CLUSTER:-"true"}
export CLUSTER_CONTEXT=${CLUSTER_CONTEXT:-"--name test"}
export KIND_OPT=${KIND_OPT:=" --config ${ROOT_DIR}/hack/kind-config.yaml"}
export KIND_K8S_VERSION=${KIND_K8S_VERSION:-"1.27"}
export KIND_K8S_VERSION=${KIND_K8S_VERSION:-"1.29"}
export KA_BIN=_output/bin
export WAIT_TIME="20s"
export KUTTL_VERSION=0.15.0
Expand Down Expand Up @@ -64,7 +64,7 @@ function update_test_host {
then
# Download kind binary (0.25.0)
echo "Downloading and installing kind v0.25.0...."
sudo curl -o /usr/local/bin/kind -L https://github.com/kubernetes-sigs/kind/releases/download/v0.25.0/kind-linux-${arch} && \
sudo curl -o /usr/local/bin/kind -L https://github.com/kubernetes-sigs/kind/releases/download/v0.26.0/kind-linux-${arch} && \
sudo chmod +x /usr/local/bin/kind
[ $? -ne 0 ] && echo "Failed to download kind" && exit 1
echo "Kind was sucessfully installed."
Expand Down Expand Up @@ -158,6 +158,26 @@ function kind_up_cluster {
# Determine node image tag based on kind version and desired kubernetes version
KIND_ACTUAL_VERSION=$(kind version | awk '/ /{print $2}')
case $KIND_ACTUAL_VERSION in
v0.26.0)
case $KIND_K8S_VERSION in
1.29)
KIND_NODE_TAG=${KIND_NODE_TAG:="kindest/node:v1.29.12@sha256:62c0672ba99a4afd7396512848d6fc382906b8f33349ae68fb1dbfe549f70dec"}
;;
1.30)
KIND_NODE_TAG=${KIND_NODE_TAG:="kindest/node:v1.30.8@sha256:17cd608b3971338d9180b00776cb766c50d0a0b6b904ab4ff52fd3fc5c6369bf"}
;;
1.31)
KIND_NODE_TAG=${KIND_NODE_TAG:="kindest/node:v1.31.4@sha256:2cb39f7295fe7eafee0842b1052a599a4fb0f8bcf3f83d96c7f4864c357c6c30"}
;;
1.32)
KIND_NODE_TAG=${KIND_NODE_TAG:="kindest/node:v1.32.0@sha256:c48c62eac5da28cdadcf560d1d8616cfa6783b58f0d94cf63ad1bf49600cb027"}
;;
*)
echo "Unexpected kubernetes version: $KIND_K8S__VERSION"
exit 1
;;
esac
;;
v0.25.0)
case $KIND_K8S_VERSION in
1.27)
Expand Down

0 comments on commit 49ed460

Please sign in to comment.