Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Commit 76ad91b

Browse files
authored
Merge pull request #1516 from mesosphere/k8s-1.24-test
build: Use k8s v1.24 for tests
2 parents 8ab28f3 + c0a65a1 commit 76ad91b

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ all: container hyperfed controller kubefedctl webhook e2e
7777
# Unit tests
7878
test:
7979
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
80-
source <(setup-envtest use -p env 1.21.x) && \
80+
source <(setup-envtest use -p env 1.24.x) && \
8181
go test $(TEST_PKGS)
8282

8383
build: hyperfed controller kubefedctl webhook

docs/environments/kind.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ script if you'd like to change the default:
4343
NUM_CLUSTERS=<num> ./scripts/create-clusters.sh
4444
```
4545

46-
The `KIND_TAG` is `v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6` by default.
46+
The `KIND_TAG` is `v1.24.2@sha256:1f0cee2282f43150b52dc7933183ed96abdcfc8d293f30ec07082495874876f1` by default.
4747
Image `kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6` is used as
4848
node docker image for booting the cluster.
4949

5050
You can use `KIND_IMAGE` or `KIND_TAG` to specify the image as you want.
5151
```bash
52-
KIND_TAG=v1.19.4@sha256:796d09e217d93bed01ecf8502633e48fd806fe42f9d02fdd468b81cd4e3bd40b ./scripts/create-clusters.sh
52+
KIND_TAG=v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6 ./scripts/create-clusters.sh
5353
```
5454

5555
```bash
56-
KIND_IMAGE=kindest/node:v1.19.4@sha256:796d09e217d93bed01ecf8502633e48fd806fe42f9d02fdd468b81cd4e3bd40b ./scripts/create-clusters.sh
56+
KIND_IMAGE=kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6 ./scripts/create-clusters.sh
5757
```
5858

5959
## Delete Clusters

scripts/create-clusters.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ set -o pipefail
2525
source "${BASH_SOURCE%/*}/util.sh"
2626
NUM_CLUSTERS="${NUM_CLUSTERS:-2}"
2727
KIND_IMAGE="${KIND_IMAGE:-}"
28-
KIND_TAG="${KIND_TAG:-v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6}"
28+
KIND_TAG="${KIND_TAG:-v1.24.2@sha256:1f0cee2282f43150b52dc7933183ed96abdcfc8d293f30ec07082495874876f1}"
2929
OS="$(uname)"
3030

3131
function create-clusters() {

scripts/download-binaries.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ curl "${curl_args}" "${kb_url}" \
5050
| tar xzP -C "${dest_dir}" --strip-components=2
5151

5252
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
53-
source <(setup-envtest use -p env 1.21.x)
53+
source <(setup-envtest use -p env 1.24.x)
5454

5555
echo "KUBEBUILDER_ASSETS is set to ${KUBEBUILDER_ASSETS}"
5656

scripts/download-e2e-binaries.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ mkdir -p "${dest_dir}"
3636

3737
# kind
3838
platform="$(uname -s|tr A-Z a-z)"
39-
kind_version="v0.11.1"
39+
kind_version="v0.14.0"
4040
kind_path="${dest_dir}/kind"
4141
kind_url="https://github.com/kubernetes-sigs/kind/releases/download/${kind_version}/kind-${platform}-amd64"
4242
curl -fLo "${kind_path}" "${kind_url}" && chmod +x "${kind_path}"

scripts/pre-commit.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function download-dependencies() {
5757
}
5858

5959
function run-unit-tests() {
60-
KUBEBUILDER_ASSETS=${ROOT_DIR}/bin ${MAKE_CMD} test
60+
${MAKE_CMD} test
6161
}
6262

6363
function run-e2e-tests() {
@@ -188,7 +188,7 @@ run-unit-tests
188188
echo "Downloading e2e test dependencies"
189189
./scripts/download-e2e-binaries.sh
190190

191-
KIND_TAG="v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6" ./scripts/create-clusters.sh
191+
KIND_TAG="v1.24.2@sha256:1f0cee2282f43150b52dc7933183ed96abdcfc8d293f30ec07082495874876f1" ./scripts/create-clusters.sh
192192

193193
declare -a join_cluster_list=()
194194
if [[ -z "${JOIN_CLUSTERS}" ]]; then

0 commit comments

Comments
 (0)