Skip to content

Commit

Permalink
Fix: Wait for catalog source to be ready
Browse files Browse the repository at this point in the history
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
  • Loading branch information
flacatus committed Mar 22, 2021
1 parent d179655 commit 430125a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions olm/olm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ waitCatalogSourcePod() {
CATALOG_POD=$(kubectl get pods -n "${namespace}" -o yaml | yq -r ".items[] | select(.metadata.name | startswith(\"${packageName}\")) | .metadata.name")
sleep 10
else
kubectl wait --for=condition=ready pod/"${CATALOG_POD}" -n "${namespace}" --timeout=180s
break
fi
done
Expand Down

0 comments on commit 430125a

Please sign in to comment.