File tree 3 files changed +12
-7
lines changed
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ set -o pipefail
28
28
source " ${CURRENT_DIR} /scripts/common.sh"
29
29
30
30
# 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
32
34
${SCRIPTS_DIR} /create-kind-cluster.sh
33
35
34
36
# If a driver image already exists load it into the cluster
Original file line number Diff line number Diff line change @@ -48,4 +48,4 @@ KIND_K8S_DIR="${TMP_DIR}/kubernetes-${KIND_K8S_TAG}"
48
48
git clone --depth 1 --branch ${KIND_K8S_TAG} ${KIND_K8S_REPO} ${KIND_K8S_DIR}
49
49
50
50
# 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} "
Original file line number Diff line number Diff line change @@ -33,7 +33,12 @@ SCRIPTS_DIR="$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)"
33
33
34
34
# The kubernetes tag to build the kind cluster from
35
35
# 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" }
37
42
38
43
# The name of the kind cluster to create
39
44
: ${KIND_CLUSTER_NAME:= " ${DRIVER_NAME} -cluster" }
@@ -44,8 +49,6 @@ SCRIPTS_DIR="$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)"
44
49
# The derived name of the driver image to build
45
50
: ${DRIVER_IMAGE:= " ${DRIVER_IMAGE_REGISTRY} /${DRIVER_IMAGE_NAME} :${DRIVER_IMAGE_TAG} " }
46
51
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} " }
51
54
You can’t perform that action at this time.
0 commit comments