mirror of
https://gitea.com/gitea/helm-actions.git
synced 2026-04-05 09:10:46 +00:00
.gitea/workflows/e2e.yml aktualisiert
This commit is contained in:
@ -17,7 +17,11 @@ jobs:
|
||||
# Install kubectl
|
||||
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
|
||||
install kubectl /usr/local/bin/
|
||||
|
||||
|
||||
- name: Delete Kind Cluster
|
||||
run: |
|
||||
kind delete cluster --name test-cluster-2
|
||||
|
||||
- name: Debug All
|
||||
run: |
|
||||
docker ps -a
|
||||
@ -26,7 +30,16 @@ jobs:
|
||||
|
||||
- name: Create kind cluster
|
||||
run: |
|
||||
kind create cluster --name test-cluster-2
|
||||
tail -f cluster.yml << 'EOF'
|
||||
# three node (two workers) cluster config
|
||||
kind: Cluster
|
||||
apiVersion: kind.x-k8s.io/v1alpha4
|
||||
nodes:
|
||||
- role: control-plane
|
||||
- role: worker
|
||||
- role: worker
|
||||
EOF
|
||||
kind create cluster --name test-cluster-2 --config cluster.yml
|
||||
|
||||
- name: Attach kind control-plane to job network and wait
|
||||
run: |
|
||||
@ -62,6 +75,17 @@ jobs:
|
||||
kubectl get nodes
|
||||
kubectl get pods -A
|
||||
|
||||
- name: Debug All
|
||||
if: always()
|
||||
run: |
|
||||
docker ps -a
|
||||
docker network ls
|
||||
docker volume ls
|
||||
|
||||
- name: Delete Kind Cluster
|
||||
run: |
|
||||
kind delete cluster --name test-cluster-2
|
||||
|
||||
- name: Debug All
|
||||
if: always()
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user