From 42115e77746337bb4eb5689258766ff203ef30db Mon Sep 17 00:00:00 2001 From: Hongchao Deng Date: Tue, 27 Oct 2020 20:13:23 -0700 Subject: [PATCH] e2e: delete kind cluster in setup Signed-off-by: Hongchao Deng --- .github/workflows/e2e.yml | 10 +++++++++- Makefile | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 1037902b7..b0b96e6f5 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -22,6 +22,14 @@ jobs: uses: engineerd/setup-kind@v0.4.0 with: version: "v0.7.0" + skipClusterCreation: true + + - name: Setup Kind Cluster + run: | + kind delete cluster + kind create cluster + kubectl version + kubectl cluster-info - name: Load Image to kind cluster run: make kind-load @@ -34,7 +42,7 @@ jobs: - name: Run e2e tests run: | + make e2e-cleanup make e2e-setup make e2e-test make e2e-api-test - make e2e-cleanup \ No newline at end of file diff --git a/Makefile b/Makefile index 5025fca9d..b0c85bc4b 100644 --- a/Makefile +++ b/Makefile @@ -96,6 +96,7 @@ e2e-api-test: e2e-cleanup: # Clean up + rm -rf ~/.vela # load docker image to the kind cluster kind-load: