print pod's log when waiting pod ready timeout

Signed-off-by: carlory <baofa.fan@daocloud.io>
This commit is contained in:
carlory 2022-01-19 21:00:17 +08:00
parent 0d98cc368d
commit fe5048cbd8
1 changed files with 2 additions and 0 deletions

View File

@ -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}
}