From 60efcf8b529fff36b145cf759a35a6b369f68328 Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Wed, 4 Dec 2024 10:54:05 +0100 Subject: [PATCH] test: dump more resources on missing install plan --- operator/hack/common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/operator/hack/common.sh b/operator/hack/common.sh index 3ff4ba03f93c0..c3d22009480b1 100644 --- a/operator/hack/common.sh +++ b/operator/hack/common.sh @@ -90,10 +90,14 @@ function approve_install_plan() { log "Waiting for an install plan to be created" if ! retry 15 5 "${ROOT_DIR}/operator/hack/retry-kubectl.sh" < /dev/null -n "${operator_ns}" wait subscription.operators.coreos.com stackrox-operator-test-subscription --for condition=InstallPlanPending --timeout=60s; then log "Install plan failed to materialize." + log "Dumping install plans..." + "${ROOT_DIR}/operator/hack/retry-kubectl.sh" < /dev/null -n "${operator_ns}" describe "installplan.operators.coreos.com" || true log "Dumping pod descriptions..." "${ROOT_DIR}/operator/hack/retry-kubectl.sh" < /dev/null -n "${operator_ns}" describe pods -l "olm.catalogSource=stackrox-operator-test-index" || true log "Dumping catalog sources and subscriptions..." "${ROOT_DIR}/operator/hack/retry-kubectl.sh" < /dev/null -n "${operator_ns}" describe "subscription.operators.coreos.com,catalogsource.operators.coreos.com" || true + log "Dumping jobs..." + "${ROOT_DIR}/operator/hack/retry-kubectl.sh" < /dev/null -n "${operator_ns}" describe "job.batch" || true return 1 fi