From 5907bde1b9795783b35eec585ad4342dae5f7ad6 Mon Sep 17 00:00:00 2001 From: Pierangelo Di Pilato Date: Thu, 17 Oct 2024 09:20:23 +0200 Subject: [PATCH] Describe sacura resources when they don't become ready (#4137) Signed-off-by: Pierangelo Di Pilato --- test/e2e-common.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/test/e2e-common.sh b/test/e2e-common.sh index 969786249f..003a391663 100644 --- a/test/e2e-common.sh +++ b/test/e2e-common.sh @@ -337,8 +337,14 @@ function delete_chaos() { function apply_sacura() { kubectl apply -Rf ./test/config/sacura/resources || return $? - kubectl wait --for=condition=ready --timeout=3m -n sacura broker/broker || return $? - kubectl wait --for=condition=ready --timeout=3m -n sacura trigger/trigger || return $? + kubectl wait --for=condition=ready --timeout=3m -n sacura broker/broker || { + kubectl describe -n sacura broker/broker + return $? + } + kubectl wait --for=condition=ready --timeout=3m -n sacura trigger/trigger || { + kubectl describe -n sacura trigger/trigger + return $? + } kubectl apply -Rf ./test/config/sacura || return $? } @@ -346,8 +352,14 @@ function apply_sacura() { function apply_sacura_sink_source() { kubectl apply -Rf ./test/config/sacura-sink-source/resources || return $? - kubectl wait --for=condition=ready --timeout=3m -n sacura-sink-source kafkasink/sink || return $? - kubectl wait --for=condition=ready --timeout=3m -n sacura-sink-source kafkasource/source || return $? + kubectl wait --for=condition=ready --timeout=3m -n sacura-sink-source kafkasink/sink || { + kubectl describe -n sacura-sink-source kafkasink/sink + return $? + } + kubectl wait --for=condition=ready --timeout=3m -n sacura-sink-source kafkasource/source || { + kubectl describe -n sacura-sink-source kafkasource/source + return $? + } kubectl apply -Rf ./test/config/sacura-sink-source || return $? }