Skip to content

Commit

Permalink
ci: Print events when bundle can not be installed
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 committed Aug 7, 2024
1 parent ff887d1 commit 34e93f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/install-trustify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi
install_operator() {
kubectl auth can-i create namespace --all-namespaces
kubectl create namespace ${NAMESPACE} || true
operator-sdk run bundle "${OPERATOR_BUNDLE_IMAGE}" --namespace "${NAMESPACE}" --timeout "${TIMEOUT}"
operator-sdk run bundle "${OPERATOR_BUNDLE_IMAGE}" --namespace "${NAMESPACE}" --timeout "${TIMEOUT}" || kubectl events --all-namespaces -o yaml

# If on MacOS, need to install `brew install coreutils` to get `timeout`
timeout 600s bash -c 'until kubectl get customresourcedefinitions.apiextensions.k8s.io trustifies.org.trustify; do sleep 30; done' \
Expand Down

0 comments on commit 34e93f3

Please sign in to comment.