Skip to content

Commit 0e5c650

Browse files
authored
Fix kind timeout (#144)
Signed-off-by: Reinhard Nägele <[email protected]>
1 parent bc772e2 commit 0e5c650

File tree

3 files changed

+5
-23
lines changed

3 files changed

+5
-23
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
chmod +x ./kubectl
2626
sudo mv ./kubectl /usr/local/bin/kubectl
2727
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | bash
28-
curl -sSLo kind "https://github.com/kubernetes-sigs/kind/releases/download/0.2.0/kind-linux-amd64"
28+
curl -sSLo kind "https://github.com/kubernetes-sigs/kind/releases/download/0.2.1/kind-linux-amd64"
2929
chmod +x kind
3030
sudo mv kind /usr/local/bin/kind
3131
- checkout

e2e-kind.sh

+2-11
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,13 @@ readonly CLUSTER_NAME=chart-testing
88
readonly K8S_VERSION=v1.13.4
99

1010
create_kind_cluster() {
11-
kind create cluster --name "$CLUSTER_NAME" --image "kindest/node:$K8S_VERSION" --wait 10s
12-
KUBECONFIG="$(kind get kubeconfig-path --name=$CLUSTER_NAME)"
11+
kind create cluster --name "$CLUSTER_NAME" --image "kindest/node:$K8S_VERSION" --wait 60s
12+
KUBECONFIG="$(kind get kubeconfig-path --name="$CLUSTER_NAME")"
1313
export KUBECONFIG
1414

1515
kubectl cluster-info || kubectl cluster-info dump
1616
echo
1717

18-
echo -n 'Waiting for cluster to be ready...'
19-
until ! grep --quiet 'NotReady' <(kubectl get nodes --no-headers); do
20-
printf '.'
21-
sleep 1
22-
done
23-
24-
echo '✔︎'
25-
echo
26-
2718
kubectl get nodes
2819
echo
2920

examples/kind/test/e2e-kind.sh

+2-11
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -o nounset
55
set -o pipefail
66

77
readonly CT_VERSION=v2.2.0
8-
readonly KIND_VERSION=0.2.0
8+
readonly KIND_VERSION=0.2.1
99
readonly CLUSTER_NAME=chart-testing
1010
readonly K8S_VERSION=v1.13.4
1111

@@ -38,7 +38,7 @@ create_kind_cluster() {
3838
chmod +x kind
3939
sudo mv kind /usr/local/bin/kind
4040

41-
kind create cluster --name "$CLUSTER_NAME" --config test/kind-config.yaml --image "kindest/node:$K8S_VERSION"
41+
kind create cluster --name "$CLUSTER_NAME" --config test/kind-config.yaml --image "kindest/node:$K8S_VERSION" --wait 60s
4242

4343
docker_exec mkdir -p /root/.kube
4444

@@ -50,15 +50,6 @@ create_kind_cluster() {
5050
docker_exec kubectl cluster-info
5151
echo
5252

53-
echo -n 'Waiting for cluster to be ready...'
54-
until ! grep --quiet 'NotReady' <(docker_exec kubectl get nodes --no-headers); do
55-
printf '.'
56-
sleep 1
57-
done
58-
59-
echo '✔︎'
60-
echo
61-
6253
docker_exec kubectl get nodes
6354
echo
6455

0 commit comments

Comments
 (0)