Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
fenio committed Jun 28, 2024
1 parent 9b3f8cf commit 567c701
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ jobs:
- name: Create StorageClass, test PVCs and PODs
run: |
kubectl apply -f test/pvc-1.yaml
kubectl apply -f test/pvc-2.yaml
kubectl apply -f test/pod-1.yaml
kubectl delete -f test/pod-1.yaml
kubectl apply -f test/pvc-2.yaml
kubectl apply -f test/pod-2.yaml
- name: Install SSHFS
Expand All @@ -69,10 +70,10 @@ jobs:
run: |
end=$((SECONDS+10)); while [[ $(kubectl get pvc pvc-1 -o 'jsonpath={..status.phase}') != "Bound" && SECONDS -lt $end ]]; do echo "waiting for pvc-1 status" && sleep 1; done
end=$((SECONDS+10)); while [[ $(kubectl get pvc pvc-2 -o 'jsonpath={..status.phase}') != "Bound" && SECONDS -lt $end ]]; do echo "waiting for pvc-2 status" && sleep 1; done
end=$((SECONDS+10)); while [[ $(kubectl get pod pod-1 -o 'jsonpath={.status.conditions[?(@.type=="Ready")].status}') != "True" && SECONDS -lt $end ]]; do echo "waiting for pod-1 status" && sleep 1; done
end=$((SECONDS+10)); while [[ $(kubectl get pod pod-2 -o 'jsonpath={.status.conditions[?(@.type=="Ready")].status}') != "True" && SECONDS -lt $end ]]; do echo "waiting for pod-2 status" && sleep 1; done
kubectl describe pvc pvc-1
kubectl describe pvc pvc-2
kubectl get pod pod-1
kubectl describe pod pod-1
kubectl describe pod pod-2
Expand All @@ -91,7 +92,6 @@ jobs:
- name: Delete PODs and PVCs
run: |
kubectl delete -f test/pod-1.yaml
kubectl delete -f test/pod-2.yaml
kubectl delete -f test/pvc-1.yaml
kubectl delete -f test/pvc-2.yaml
Expand Down
2 changes: 1 addition & 1 deletion test/pod-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
containers:
- name: container
image: busybox
command: [ "sleep", "1" ]
command: [ "sleep", "3600" ]
volumeMounts:
- mountPath: "/mnt/test"
name: test-volume
Expand Down

0 comments on commit 567c701

Please sign in to comment.