From 84d97164fe9e45f6d1c2011a37eea6342401a111 Mon Sep 17 00:00:00 2001 From: LiZhenCheng9527 Date: Mon, 29 Jan 2024 19:25:31 +0800 Subject: [PATCH] change kurator clusters exist wait time Signed-off-by: LiZhenCheng9527 --- .github/workflows/e2e.yaml | 4 ---- hack/util.sh | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 5cf671e40..2ca618acb 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -25,10 +25,6 @@ jobs: uses: azure/setup-helm@v3 with: version: v3.10.1 - # - name: Install Kubectl - # uses: actions-hub/kubectl@v1.27.3 - # with: - # KUBE_CONFIG - name: Init kurator cluster run: | hack/e2e-test/install.sh diff --git a/hack/util.sh b/hack/util.sh index d73cc1aa3..25fe87bf4 100755 --- a/hack/util.sh +++ b/hack/util.sh @@ -187,7 +187,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}" 300 + util::wait_file_exist "${kubeconfig_path}" 600 util::wait_for_condition 'running' "docker inspect --format='{{.State.Status}}' ${context_name}-control-plane &> /dev/null" 300 kubectl config rename-context "kind-${context_name}" "${context_name}" --kubeconfig="${kubeconfig_path}"