From 630634c5dfe649a82cfb0dc465b86057e03acb09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 20 Jul 2023 22:27:12 +0200 Subject: [PATCH] ci: k8s: Group logs to make them easier to read MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise it becomes really hard to find the info you're looking for. Signed-off-by: Fabiano FidĂȘncio --- tests/integration/kubernetes/gha-run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/integration/kubernetes/gha-run.sh b/tests/integration/kubernetes/gha-run.sh index 31e377e62..85180920a 100755 --- a/tests/integration/kubernetes/gha-run.sh +++ b/tests/integration/kubernetes/gha-run.sh @@ -168,10 +168,18 @@ function delete_cluster() { function get_nodes_and_pods_info() { describe_pods="${1:-"no"}" + echo "::group::Get node information" kubectl get nodes -o wide --show-labels=true + echo "::endgroup::" + echo "" + echo "::group::Get all the pods running" kubectl get pods -A + echo "::endgroup::" + echo "" if [[ "${describe_pods}" == "yes" ]]; then + echo "::group::Describe all the pods" kubectl describe pods -A + echo "::endgroup::" fi kubectl debug $(kubectl get nodes -o name) -it --image=quay.io/kata-containers/kata-debug:latest }