From d3540edfc4659c8593059f32f07f5ceccc722170 Mon Sep 17 00:00:00 2001 From: ShutingZhao Date: Wed, 13 Sep 2023 20:56:47 +0800 Subject: [PATCH] chore: refresh-env-var-ns - split deletion tasks Signed-off-by: ShutingZhao --- other/rec-req/refresh-env-var-in-pod/05-check.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/other/rec-req/refresh-env-var-in-pod/05-check.yaml b/other/rec-req/refresh-env-var-in-pod/05-check.yaml index bc5f8221c..8d6c2131f 100644 --- a/other/rec-req/refresh-env-var-in-pod/05-check.yaml +++ b/other/rec-req/refresh-env-var-in-pod/05-check.yaml @@ -54,4 +54,9 @@ commands: else exit 1; fi -- command: kubectl delete all --all --force --grace-period=0 -n refresh-env-var-ns \ No newline at end of file +- command: kubectl delete deployment --all --force --grace-period=0 -n refresh-env-var-ns +- command: kubectl delete secret --all --force --grace-period=0 -n refresh-env-var-ns +- command: kubectl delete clusterrole kyverno:background-controller:refresh-env-var-in-pod +- command: kubectl delete cpol --all +- command: sleep 3 +- command: kubectl delete ns refresh-env-var-ns \ No newline at end of file