Skip to content

Commit

Permalink
back to default sc
Browse files Browse the repository at this point in the history
  • Loading branch information
fenio committed Jun 28, 2024
1 parent 7b8813e commit 8f7b9f0
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ jobs:

- name: Create StorageClass, test PVCs and PODs
run: |
kubectl apply -f test/sc.yaml
kubectl apply -f test/pvc-1.yaml
kubectl apply -f test/pvc-2.yaml
kubectl apply -f test/pod-1.yaml
kubectl apply -f test/pod-2.yaml
- name: Install SSHFS
run: sudo apt-get update && sudo apt-get install -y sshfs --no-install-recommends --no-install-suggests
Expand All @@ -70,12 +70,11 @@ jobs:
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 describe pod pod-1
kubectl get storageclass standard -o yaml
kubectl get storageclass test -o yaml
kubectl get nodes
kubectl describe pod pod-2
- name: Run tests
run: |
Expand All @@ -93,6 +92,7 @@ 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 @@ -4,7 +4,7 @@ metadata:
name: pod-1
spec:
containers:
- name: container-1
- name: container
image: busybox
command: [ "sleep", "3600" ]
volumeMounts:
Expand Down
17 changes: 17 additions & 0 deletions test/pod-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Pod
metadata:
name: pod-2
spec:
containers:
- name: container
image: busybox
command: [ "sleep", "3600" ]
volumeMounts:
- mountPath: "/mnt/test"
name: test-volume
volumes:
- name: test-volume
persistentVolumeClaim:
claimName: pvc-2

3 changes: 1 addition & 2 deletions test/pvc-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ metadata:
name: pvc-1
spec:
accessModes:
- ReadWriteOnce
- ReadWriteMany
resources:
requests:
storage: 10Mi
storageClassName: test
1 change: 0 additions & 1 deletion test/pvc-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ spec:
resources:
requests:
storage: 10Mi
storageClassName: test
7 changes: 0 additions & 7 deletions test/sc.yaml

This file was deleted.

0 comments on commit 8f7b9f0

Please sign in to comment.