61
61
OPTIND=1
62
62
63
63
# 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
68
69
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}
73
71
74
72
# Change from empty string to build the kpt binary from the downloaded
75
73
# repositories at HEAD, including dependencies cli-utils and kustomize.
@@ -87,12 +85,6 @@ while getopts $options opt; do
87
85
b) BUILD_DEPS_AT_HEAD=1;;
88
86
k) short_version=$OPTARG
89
87
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
- ;;
96
88
1.16) K8S_VERSION=$KIND_1_16_VERSION
97
89
;;
98
90
1.17) K8S_VERSION=$KIND_1_17_VERSION
@@ -101,6 +93,10 @@ while getopts $options opt; do
101
93
;;
102
94
1.19) K8S_VERSION=$KIND_1_19_VERSION
103
95
;;
96
+ 1.20) K8S_VERSION=$KIND_1_20_VERSION
97
+ ;;
98
+ 1.21) K8S_VERSION=$KIND_1_21_VERSION
99
+ ;;
104
100
esac
105
101
;;
106
102
\? ) echo " Usage: $0 [-b] [-k k8s-version]" >&2 ; exit 1;;
@@ -188,7 +184,8 @@ function buildKpt {
188
184
set +e
189
185
}
190
186
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.
192
189
function createTestSuite {
193
190
set -e
194
191
echo " Setting Up Test Suite..."
@@ -199,6 +196,7 @@ function createTestSuite {
199
196
echo " Deleting kind cluster...SUCCESS"
200
197
echo " Creating kind cluster..."
201
198
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
202
200
echo " Creating kind cluster...SUCCESS"
203
201
echo
204
202
echo " Setting Up Test Suite...SUCCESS"
0 commit comments