Skip to content

Commit

Permalink
support kind 0.20.0 (#394)
Browse files Browse the repository at this point in the history
Signed-off-by: David Grove <[email protected]>
  • Loading branch information
dgrove-oss authored Jun 22, 2023
1 parent fb3d19f commit 8077535
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
set -eu

HELM_VERSION=v3.11.2
KIND_VERSION=v0.19.0
KIND_VERSION=v0.20.0
KUBECTL_VERSION=v1.24.13

# Download and install command line tools
Expand Down
12 changes: 12 additions & 0 deletions scripts/kind-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ set -eu
SCRIPTDIR=$(cd $(dirname "$0") && pwd)
ROOTDIR="$SCRIPTDIR/.."

# Valid node tags for kind 0.20.0
# 1.27: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
# 1.26: kindest/node:v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e4504007adb
# 1.25: kindest/node:v1.25.11@sha256:227fa11ce74ea76a0474eeefb84cb75d8dad1b08638371ecf0e86259b35be0c8
# 1.24: kindest/node:v1.24.15@sha256:7db4f8bea3e14b82d12e044e25e34bd53754b7f2b0e9d56df21774e6f66a70ab
# 1.23: kindest/node:v1.23.17@sha256:59c989ff8a517a93127d4a536e7014d28e235fb3529d9fba91b3951d461edfdb
# 1.22: kindest/node:v1.22.17@sha256:f5b2e5698c6c9d6d0adc419c0deae21a425c07d81bbf3b6a6834042f25d4fba2
# 1.21: kindest/node:v1.21.14@sha256:8a4e9bb3f415d2bb81629ce33ef9c76ba514c14d707f9797a01e3216376ba093

# Valid node tags for kind 0.19.0
# 1.27: kindest/node:v1.27.1@sha256:b7d12ed662b873bd8510879c1846e87c7e676a79fefc93e17b2a52989d3ff42b
# 1.26: kindest/node:v1.26.4@sha256:f4c0d87be03d6bea69f5e5dc0adb678bb498a190ee5c38422bf751541cebe92e
Expand Down Expand Up @@ -54,6 +63,9 @@ ROOTDIR="$SCRIPTDIR/.."
# Based on the kind version found in the path, select the correct Kubernetes 1.24 node tag
KIND_ACTUAL_VERSION=$(kind version | awk '/ /{print $2}')
case $KIND_ACTUAL_VERSION in
v0.20.0)
KIND_NODE_TAG=${KIND_NODE_TAG:="v1.24.15@sha256:7db4f8bea3e14b82d12e044e25e34bd53754b7f2b0e9d56df21774e6f66a70ab"}
;;
v0.19.0)
KIND_NODE_TAG=${KIND_NODE_TAG:="v1.24.13@sha256:cea86276e698af043af20143f4bf0509e730ec34ed3b7fa790cc0bea091bc5dd"}
;;
Expand Down

0 comments on commit 8077535

Please sign in to comment.