Skip to content

Commit

Permalink
chore: specify the K8S cluster version used for the test (apache#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
tao12345666333 committed Dec 23, 2021
1 parent 0cdfa1a commit c1decdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/en/latest/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This document explains how to get started with developing for Apache APISIX Ingr
## Prerequisites

* Install [Go 1.13](https://golang.org/dl/) or later, and we use go module to manage the go package dependencies.
* Prepare an available Kubernetes cluster in your workstation, we recommend you to use [Kind](https://kind.sigs.k8s.io/).
* Prepare an available Kubernetes cluster in your workstation, we recommend you to use [KIND](https://kind.sigs.k8s.io/).
* Install Apache APISIX in Kubernetes by [Helm Chart](https://github.com/apache/apisix-helm-chart).

## Fork and Clone
Expand Down Expand Up @@ -54,6 +54,9 @@ make unit-test

### Run e2e test cases

We using [KIND](https://kind.sigs.k8s.io/) for running e2e test cases. Please ensure `kind` CLI has been installed.
Currently we using KIND latest version v0.11.1 and using Kubernetes v1.21.1 for testing.

```shell
cd /path/to/apisix-ingress-controller
make e2e-test
Expand Down
3 changes: 2 additions & 1 deletion utils/kind-with-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ fi
echo "Registry Host: ${reg_host}"

# create a cluster with the local registry enabled in containerd
cat <<EOF | kind create cluster --name "${KIND_CLUSTER_NAME}" --config=-
kind_node_image='kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6'
cat <<EOF | kind create cluster --name "${KIND_CLUSTER_NAME}" --image ${kind_node_image} --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
Expand Down

0 comments on commit c1decdc

Please sign in to comment.