Skip to content

Commit

Permalink
chore: refresh-volumes-in-pods - split deletion tasks
Browse files Browse the repository at this point in the history
Signed-off-by: ShutingZhao <[email protected]>
  • Loading branch information
realshuting committed Sep 13, 2023
1 parent d3540ed commit bda3bec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion other/rec-req/refresh-volumes-in-pods/05-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ commands:
- script: |
val=$(kubectl exec pod04 -n refresh-vols-ns -- cat /mnt/foo/foo)
if [ "$val" = "bar" ]; then exit 0; else exit 1; fi
- command: kubectl delete all --all --force --grace-period=0 -n refresh-vols-ns
- command: kubectl delete pod --all --force --grace-period=0 -n refresh-vols-ns
- command: kubectl delete cm --all --force --grace-period=0 -n refresh-vols-ns
- command: kubectl delete clusterrole kyverno:background-controller:refresh-vols-pods
- command: kubectl delete cpol --all
- command: sleep 3
- command: kubectl delete ns refresh-vols-ns

0 comments on commit bda3bec

Please sign in to comment.