Skip to content

Commit

Permalink
refactor: use fixed kind node image for k8s api compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Aug 24, 2023
1 parent 047238f commit e727f7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ setup-e2e: ## Setup e2e test environment.

.PHONY: e2e
e2e: gtctl setup-e2e ## Run e2e.
go test -timeout 20m -v ./tests/e2e/... && kind delete clusters $(CLUSTER)
go test -timeout 10m -v ./tests/e2e/... && kind delete clusters $(CLUSTER)

.PHONY: lint
lint: golangci-lint gtctl ## Run lint.
Expand Down
3 changes: 2 additions & 1 deletion hack/e2e/setup-e2e-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ set -o pipefail
CLUSTER=e2e-cluster
REGISTRY_NAME=kind-registry
REGISTRY_PORT=5001
KIND_NODE_IMAGE=kindest/node:v1.24.15

function check_prerequisites() {
if ! hash docker 2>/dev/null; then
Expand Down Expand Up @@ -59,7 +60,7 @@ function create_kind_cluster() {
done

# create a cluster with the local registry enabled in containerd
cat <<EOF | kind create cluster --name "${CLUSTER}" --config=-
cat <<EOF | kind create cluster --image ${KIND_NODE_IMAGE} --name "${CLUSTER}" --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
containerdConfigPatches:
Expand Down

0 comments on commit e727f7a

Please sign in to comment.