Skip to content

Commit cb43796

Browse files
authored
Update kind and k8s for e2e tests (#2373)
1 parent 5251fe0 commit cb43796

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

.github/workflows/e2eEnvironment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
strategy:
3030
matrix:
31-
version: [1.18, 1.19]
31+
version: [1.19, 1.20]
3232
steps:
3333
- name: Set up Go
3434
uses: actions/setup-go@v2
@@ -40,7 +40,7 @@ jobs:
4040
- name: Install KinD
4141
uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 # v0.5.0
4242
with:
43-
version: "v0.9.0"
43+
version: "v0.11.1"
4444
skipClusterCreation: true
4545
- name: Run Tests
4646
env:

e2e/live/end-to-end-test.sh

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,13 @@
6161
OPTIND=1
6262

6363
# Kind/Kubernetes versions.
64-
DEFAULT_KIND_VERSION=0.9.0
65-
KIND_1_19_VERSION=1.19.1
66-
KIND_1_18_VERSION=1.18.8
67-
KIND_1_17_VERSION=1.17.11
64+
KIND_1_21_VERSION=1.21.1
65+
KIND_1_20_VERSION=1.20.7
66+
KIND_1_19_VERSION=1.19.11
67+
KIND_1_18_VERSION=1.18.19
68+
KIND_1_17_VERSION=1.17.17
6869
KIND_1_16_VERSION=1.16.15
69-
KIND_1_15_VERSION=1.15.12
70-
KIND_1_14_VERSION=1.14.10
71-
KIND_1_13_VERSION=1.13.12
72-
DEFAULT_K8S_VERSION=${KIND_1_17_VERSION}
70+
DEFAULT_K8S_VERSION=${KIND_1_20_VERSION}
7371

7472
# Change from empty string to build the kpt binary from the downloaded
7573
# repositories at HEAD, including dependencies cli-utils and kustomize.
@@ -87,12 +85,6 @@ while getopts $options opt; do
8785
b) BUILD_DEPS_AT_HEAD=1;;
8886
k) short_version=$OPTARG
8987
case "$short_version" in
90-
1.13) K8S_VERSION=$KIND_1_13_VERSION
91-
;;
92-
1.14) K8S_VERSION=$KIND_1_14_VERSION
93-
;;
94-
1.15) K8S_VERSION=$KIND_1_15_VERSION
95-
;;
9688
1.16) K8S_VERSION=$KIND_1_16_VERSION
9789
;;
9890
1.17) K8S_VERSION=$KIND_1_17_VERSION
@@ -101,6 +93,10 @@ while getopts $options opt; do
10193
;;
10294
1.19) K8S_VERSION=$KIND_1_19_VERSION
10395
;;
96+
1.20) K8S_VERSION=$KIND_1_20_VERSION
97+
;;
98+
1.21) K8S_VERSION=$KIND_1_21_VERSION
99+
;;
104100
esac
105101
;;
106102
\? ) echo "Usage: $0 [-b] [-k k8s-version]" >&2; exit 1;;
@@ -188,7 +184,8 @@ function buildKpt {
188184
set +e
189185
}
190186

191-
# createTestSuite deletes then creates the kind cluster.
187+
# createTestSuite deletes then creates the kind cluster. We wait for the node
188+
# to become ready before we run the tests.
192189
function createTestSuite {
193190
set -e
194191
echo "Setting Up Test Suite..."
@@ -199,6 +196,7 @@ function createTestSuite {
199196
echo "Deleting kind cluster...SUCCESS"
200197
echo "Creating kind cluster..."
201198
kind create cluster --image=kindest/node:v${K8S_VERSION} > $OUTPUT_DIR/k8sstartup 2>&1
199+
kubectl wait node/kind-control-plane --for condition=ready --timeout=2m
202200
echo "Creating kind cluster...SUCCESS"
203201
echo
204202
echo "Setting Up Test Suite...SUCCESS"

0 commit comments

Comments
 (0)