From f23ea9d678e738ae36d4a49f0e6a855a311da294 Mon Sep 17 00:00:00 2001 From: carlory Date: Wed, 19 Jan 2022 15:03:52 +0800 Subject: [PATCH] print pod logs Signed-off-by: carlory --- hack/util.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hack/util.sh b/hack/util.sh index 4a2b7774b20b..aa93fffff4dc 100755 --- a/hack/util.sh +++ b/hack/util.sh @@ -279,6 +279,8 @@ function util::wait_pod_ready() { if [ $ret -ne 0 ];then echo "kubectl describe info:" kubectl describe pod -l app=${pod_label} -n ${pod_namespace} + echo "kubectl logs info:" + kubectl logs -l app=${pod_label} -n ${pod_namespace} fi return ${ret} }