From 3bdcbf45136164c6b79b14604c04d9ee2f3c71de Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Sat, 23 Jan 2021 01:22:22 +0800 Subject: [PATCH] increase timewait for cluster ready Signed-off-by: Kevin Wang --- hack/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/util.sh b/hack/util.sh index bd273f0c9..a1616be83 100755 --- a/hack/util.sh +++ b/hack/util.sh @@ -243,7 +243,7 @@ function util::check_clusters_ready() { local context_name=${2} echo "Waiting for kubeconfig file ${kubeconfig_path} and clusters ${context_name} to be ready..." - util::wait_file_exist ${kubeconfig_path} 60 + util::wait_file_exist ${kubeconfig_path} 120 kubectl config rename-context "kind-${context_name}" "${context_name}" --kubeconfig="${kubeconfig_path}" container_ip=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' "${context_name}-control-plane") kubectl config set-cluster "kind-${context_name}" --server="https://${container_ip}:6443" --kubeconfig="${kubeconfig_path}"