From 3226228d6927ec966e33d0e89720c53a766806d6 Mon Sep 17 00:00:00 2001 From: ShutingZhao Date: Wed, 13 Sep 2023 22:23:02 +0800 Subject: [PATCH] chore: adjust delay Signed-off-by: ShutingZhao --- other/rec-req/refresh-volumes-in-pods/04-check-annotations.yaml | 2 +- other/rec-req/refresh-volumes-in-pods/05-check.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/other/rec-req/refresh-volumes-in-pods/04-check-annotations.yaml b/other/rec-req/refresh-volumes-in-pods/04-check-annotations.yaml index e5ec918e0..686919495 100644 --- a/other/rec-req/refresh-volumes-in-pods/04-check-annotations.yaml +++ b/other/rec-req/refresh-volumes-in-pods/04-check-annotations.yaml @@ -1,7 +1,7 @@ apiVersion: kuttl.dev/v1beta1 kind: TestStep commands: -- command: sleep 5 +- command: sleep 3 - script: | annotation=$(kubectl get pod pod01 -n refresh-vols-ns -o json | kyverno jp query "metadata.annotations.\"corp.org/random\" || '' " | tail -n 1 | cut -d '"' -f 2) if [ "$annotation" = "" ]; then exit 1; else exit 0; fi 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 f9a9d2e7b..61c1a121f 100644 --- a/other/rec-req/refresh-volumes-in-pods/05-check.yaml +++ b/other/rec-req/refresh-volumes-in-pods/05-check.yaml @@ -1,7 +1,7 @@ apiVersion: kuttl.dev/v1beta1 kind: TestStep commands: -- command: sleep 3 +- command: sleep 5 - script: | val=$(kubectl exec pod01 -n refresh-vols-ns -- cat /mnt/foo/foo) if [ "$val" = "bar" ]; then exit 0; else exit 1; fi