Skip to content

Commit

Permalink
debug: replace pods on resize
Browse files Browse the repository at this point in the history
  • Loading branch information
vknabel committed Sep 13, 2024
1 parent 12be656 commit 3678098
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/bats/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
run kubectl apply -f files/pvc.linear.resize.yaml --wait --timeout=30s
[ "$status" -eq 0 ]

run kubectl replace -f files/pod.linear.vol.yaml --wait --timeout=20s
[ "$status" -eq 0 ]

run kubectl wait --for=jsonpath='{.status.capacity.storage}'=200Mi -f files/pvc.linear.resize.yaml --timeout=30s
kubectl describe pod volume-test >&3
kubectl describe pvc lvm-pvc-linear >&3
Expand Down Expand Up @@ -83,6 +86,9 @@
run kubectl apply -f files/pvc.block.resize.yaml --wait --timeout=40s
[ "$status" -eq 0 ]

run kubectl replace -f files/pvc.block.yaml --wait --timeout=20s
[ "$status" -eq 0 ]

run kubectl wait --for=jsonpath='{.status.capacity.storage}'=200Mi -f files/pvc.block.resize.yaml --timeout=40s
kubectl describe pod volume-test-block >&3
kubectl describe pvc lvm-pvc-block >&3
Expand Down

0 comments on commit 3678098

Please sign in to comment.