Skip to content

Commit

Permalink
Update current feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Feb 16, 2024
1 parent 86a0e4e commit a9f3137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/install-olm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ chmod +x /tmp/install.sh
/tmp/install.sh "$olm_version"

echo "Wait for operator-lifecycle-manager to be ready"
kubectl rollout status -n olm deployment/olm-operator --timeout_sec="$timeout_sec"
kubectl rollout status -n olm deployment/olm-operator --timeout="$timeout_sec"

echo "Wait for operatorhubio-catalog pod to be ready"

# Sometime the first operatorhubio-catalog pod is failing
# and the 'kubectl wait' fails waiting for it
counter=0
max_retry=5
while ! kubectl wait -n olm pod --for=condition=Ready -l olm.catalogSource=operatorhubio-catalog --timeout_sec="$timeout_sec"
while ! kubectl wait -n olm pod --for=condition=Ready -l olm.catalogSource=operatorhubio-catalog --timeout="$timeout_sec"
dos"
if [ $counter -eq $max_retry ]; then
break
Expand Down

0 comments on commit a9f3137

Please sign in to comment.