From b604c66e25ea09815e945cd3b39118e31d33cd82 Mon Sep 17 00:00:00 2001 From: Fabrice Jammes Date: Fri, 7 Jun 2024 16:50:29 +0200 Subject: [PATCH] Increase timeout management for olm install --- resources/install-olm.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/install-olm.sh b/resources/install-olm.sh index 3545264..1842947 100755 --- a/resources/install-olm.sh +++ b/resources/install-olm.sh @@ -7,7 +7,7 @@ set -euxo pipefail olm_version="v0.28.0" -timeout_sec="600s" +timeout="60" echo "Install operator-lifecycle-manager $olm_version" @@ -24,10 +24,11 @@ echo "Wait for operatorhubio-catalog pod to be ready" # and the 'kubectl wait' fails waiting for it, so a retry is needed counter=0 max_retry=5 -while ! kubectl wait -n olm pod --for=condition=Ready -l olm.catalogSource=operatorhubio-catalog --timeout="$timeout_sec" +while ! kubectl wait -n olm pod --for=condition=Ready -l olm.catalogSource=operatorhubio-catalog --timeout="${timeout}s" do if [ $counter -eq $max_retry ]; then break fi counter=$((counter+1)) + timeout=$((timeout+60)) done