From bda3becf3ec9ef4dd63c778cfcf9c8b9f0290b63 Mon Sep 17 00:00:00 2001 From: ShutingZhao Date: Wed, 13 Sep 2023 21:26:17 +0800 Subject: [PATCH] chore: refresh-volumes-in-pods - split deletion tasks Signed-off-by: ShutingZhao --- other/rec-req/refresh-volumes-in-pods/05-check.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/other/rec-req/refresh-volumes-in-pods/05-check.yaml b/other/rec-req/refresh-volumes-in-pods/05-check.yaml index 536299327..f9a9d2e7b 100644 --- a/other/rec-req/refresh-volumes-in-pods/05-check.yaml +++ b/other/rec-req/refresh-volumes-in-pods/05-check.yaml @@ -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 \ No newline at end of file +- 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 \ No newline at end of file