diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index e341fd620d7..62117a9e8d6 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -685,6 +685,10 @@ function wait_node_ready(){ local system_node_wait_time=60 local interval_time=2 kube::util::wait_for_success "$system_node_wait_time" "$interval_time" "$nodes_stats | grep $node_name" + if [ $? == "1" ]; then + echo "time out on waiting $node_name exist" + exit 1 + fi local system_node_ready_time=300 local node_ready="${KUBECTL} --kubeconfig '${CERT_DIR}/admin.kubeconfig' wait --for=condition=Ready --timeout=60s nodes $node_name"