mirror of
https://github.com/helm/chart-testing.git
synced 2026-02-05 09:45:14 +01:00
Fix kind timeout (#144)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
readonly CT_VERSION=v2.2.0
|
||||
readonly KIND_VERSION=0.2.0
|
||||
readonly KIND_VERSION=0.2.1
|
||||
readonly CLUSTER_NAME=chart-testing
|
||||
readonly K8S_VERSION=v1.13.4
|
||||
|
||||
@@ -38,7 +38,7 @@ create_kind_cluster() {
|
||||
chmod +x kind
|
||||
sudo mv kind /usr/local/bin/kind
|
||||
|
||||
kind create cluster --name "$CLUSTER_NAME" --config test/kind-config.yaml --image "kindest/node:$K8S_VERSION"
|
||||
kind create cluster --name "$CLUSTER_NAME" --config test/kind-config.yaml --image "kindest/node:$K8S_VERSION" --wait 60s
|
||||
|
||||
docker_exec mkdir -p /root/.kube
|
||||
|
||||
@@ -50,15 +50,6 @@ create_kind_cluster() {
|
||||
docker_exec kubectl cluster-info
|
||||
echo
|
||||
|
||||
echo -n 'Waiting for cluster to be ready...'
|
||||
until ! grep --quiet 'NotReady' <(docker_exec kubectl get nodes --no-headers); do
|
||||
printf '.'
|
||||
sleep 1
|
||||
done
|
||||
|
||||
echo '✔︎'
|
||||
echo
|
||||
|
||||
docker_exec kubectl get nodes
|
||||
echo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user