From 48d58c2e9ba5205d3f96d1291e8fdfc03c4e29b7 Mon Sep 17 00:00:00 2001 From: Nicolas Bigler Date: Wed, 26 Jul 2023 11:01:34 +0200 Subject: [PATCH] f Signed-off-by: Nicolas Bigler --- pkg/comp-functions/functions/vshnredis/script/cleanupRestore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/comp-functions/functions/vshnredis/script/cleanupRestore.sh b/pkg/comp-functions/functions/vshnredis/script/cleanupRestore.sh index 3609a5cac..efd314eaf 100644 --- a/pkg/comp-functions/functions/vshnredis/script/cleanupRestore.sh +++ b/pkg/comp-functions/functions/vshnredis/script/cleanupRestore.sh @@ -5,7 +5,7 @@ set -euo pipefail echo "Wait for restore to complete" counter=0 -until [ $counter -eq 300 ] || [[ $(kubectl -n "${TARGET_NAMESPACE}" get job "${RESTORE_JOB_NAME}" -o jsonpath='{.status.succeeded}' 2> /dev/null) -eq 1 ]]; +until [[ $(kubectl -n "${TARGET_NAMESPACE}" get job "${RESTORE_JOB_NAME}" -o jsonpath='{.status.succeeded}' 2> /dev/null) -eq 1 ]] || [[ $(kubectl -n "${TARGET_NAMESPACE}" get job "${RESTORE_JOB_NAME}" -o jsonpath='{.status.failed}' 2> /dev/null) -eq 1 ]]; do (( counter+=1 )) sleep 1