Skip to content

Commit 155fec6

Browse files
committed
Update demo scripts to run with kubernetes 1.28.0
As part of this we remove the custom base image that previously allowed us to pull in containerd 1.7. The latest kind images are all running with containerd 1.7 by default. Signed-off-by: Kevin Klues <[email protected]>
1 parent c2454d5 commit 155fec6

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

demo/create-cluster.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ set -o pipefail
2828
source "${CURRENT_DIR}/scripts/common.sh"
2929

3030
# Build the kind image and create a test cluster
31-
${SCRIPTS_DIR}/build-kind-image.sh
31+
if [ "${BUILD_KIND_IMAGE}" = "true" ]; then
32+
${SCRIPTS_DIR}/build-kind-image.sh
33+
fi
3234
${SCRIPTS_DIR}/create-kind-cluster.sh
3335

3436
# If a driver image already exists load it into the cluster

demo/scripts/build-kind-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ KIND_K8S_DIR="${TMP_DIR}/kubernetes-${KIND_K8S_TAG}"
4848
git clone --depth 1 --branch ${KIND_K8S_TAG} ${KIND_K8S_REPO} ${KIND_K8S_DIR}
4949

5050
# Build the kind base image
51-
kind build node-image --base-image "${KIND_IMAGE_BASE}" --image "${KIND_IMAGE}" "${KIND_K8S_DIR}"
51+
kind build node-image --image "${KIND_IMAGE}" "${KIND_K8S_DIR}"

demo/scripts/common.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ SCRIPTS_DIR="$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)"
3333

3434
# The kubernetes tag to build the kind cluster from
3535
# From https://github.com/kubernetes/kubernetes/tags
36-
: ${KIND_K8S_TAG:="v1.27.1"}
36+
: ${KIND_K8S_TAG:="v1.28.0"}
37+
38+
# At present, kind has a new enough node image that we don't need to build our
39+
# own. This won't always be true and we may need to set the variable below to
40+
# 'true' from time to time as things change.
41+
: ${BUILD_KIND_IMAGE:="false"}
3742

3843
# The name of the kind cluster to create
3944
: ${KIND_CLUSTER_NAME:="${DRIVER_NAME}-cluster"}
@@ -44,8 +49,6 @@ SCRIPTS_DIR="$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)"
4449
# The derived name of the driver image to build
4550
: ${DRIVER_IMAGE:="${DRIVER_IMAGE_REGISTRY}/${DRIVER_IMAGE_NAME}:${DRIVER_IMAGE_TAG}"}
4651

47-
# The derived name of the kind image to build
48-
: ${KIND_IMAGE_BASE_TAG:="v20230515-01914134-containerd_v1.7.1"}
49-
: ${KIND_IMAGE_BASE:="gcr.io/k8s-staging-kind/base:${KIND_IMAGE_BASE_TAG}"}
50-
: ${KIND_IMAGE:="kindest/node:${KIND_K8S_TAG}-${KIND_IMAGE_BASE_TAG}"}
52+
# The name of the kind image to build / run
53+
: ${KIND_IMAGE:="kindest/node:${KIND_K8S_TAG}"}
5154

0 commit comments

Comments
 (0)