Skip to content

Commit

Permalink
Change wait condition for catalogSource
Browse files Browse the repository at this point in the history
Signed-off-by: frherrer <frherrer@redhat.com>
  • Loading branch information
fjglira committed Sep 24, 2024
1 parent acb1b7c commit 1c78e2c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/e2e/common-operator-integ-suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,12 @@ if [ "${SKIP_BUILD}" == "false" ]; then
# Install OLM in the cluster because it's not available by default in kind.
${OPERATOR_SDK} olm install

# Wait to operatorhub pod to be running
${COMMAND} wait --for=condition=ready pod -l olm.catalogSource=operatorhubio-catalog -n olm --timeout=5m
# List the condition of the catalogsource to check if it's ready


# Wait for for the CatalogSource to be CatalogSource.status.connectionState.lastObservedState == READY
timeout --foreground -v -s SIGHUP -k ${TIMEOUT} ${TIMEOUT} bash --verbose -c \
"until ${COMMAND} get CatalogSource operatorhubio-catalog -n olm -o jsonpath='{.status.connectionState.lastObservedState}' | grep -q READY; do sleep 5; done && echo 'The CatalogSource is Ready.'"

# Create operator namespace
${COMMAND} create ns "${NAMESPACE}" || echo "Creation of namespace ${NAMESPACE} failed with the message: $?"
Expand Down

0 comments on commit 1c78e2c

Please sign in to comment.