Skip to content

Commit 39f641c

Browse files
authored
test: dump more resources on missing install plan (#13518)
1 parent bd19fb7 commit 39f641c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

operator/hack/common.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,14 @@ function approve_install_plan() {
9090
log "Waiting for an install plan to be created"
9191
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
9292
log "Install plan failed to materialize."
93+
log "Dumping install plans..."
94+
"${ROOT_DIR}/operator/hack/retry-kubectl.sh" < /dev/null -n "${operator_ns}" describe "installplan.operators.coreos.com" || true
9395
log "Dumping pod descriptions..."
9496
"${ROOT_DIR}/operator/hack/retry-kubectl.sh" < /dev/null -n "${operator_ns}" describe pods -l "olm.catalogSource=stackrox-operator-test-index" || true
9597
log "Dumping catalog sources and subscriptions..."
9698
"${ROOT_DIR}/operator/hack/retry-kubectl.sh" < /dev/null -n "${operator_ns}" describe "subscription.operators.coreos.com,catalogsource.operators.coreos.com" || true
99+
log "Dumping jobs..."
100+
"${ROOT_DIR}/operator/hack/retry-kubectl.sh" < /dev/null -n "${operator_ns}" describe "job.batch" || true
97101
return 1
98102
fi
99103

0 commit comments

Comments
 (0)