diff --git a/.gitea/workflows/e2e.yml b/.gitea/workflows/e2e.yml index 5796d88..043b33f 100644 --- a/.gitea/workflows/e2e.yml +++ b/.gitea/workflows/e2e.yml @@ -20,6 +20,8 @@ jobs: - name: Create kind cluster run: | + echo "Try to Delete old cluster" + kind delete cluster --name test-cluster || echo "No cluster Deleted" kind create cluster --name test-cluster --wait 5m - name: Connect kind to the job container's network and fix kubeconfig @@ -59,3 +61,7 @@ jobs: kubectl cluster-info kubectl get nodes kubectl get pods -A + + - name: Delete Cluster + if: always() + run: kind delete cluster --name test-cluster