mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-16 10:48:02 +00:00
ci: k8s: Group logs to make them easier to read
Otherwise it becomes really hard to find the info you're looking for. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
228b30f31c
commit
630634c5df
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user