mirror of
https://gitea.com/gitea/helm-actions.git
synced 2026-04-05 09:10:46 +00:00
Add delete cluster
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user