From 64f013f3bf5a1b52b5cbce8141a0947dcdb8d390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 14 Jul 2023 10:27:58 +0200 Subject: [PATCH] ci: k8s: Enable debug when running the tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will help us to gather more information about Kata Containers in case of failure. Fixes: #7343 Signed-off-by: Fabiano FidĂȘncio --- tests/integration/gha-run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/gha-run.sh b/tests/integration/gha-run.sh index 102348cae..a343d801c 100755 --- a/tests/integration/gha-run.sh +++ b/tests/integration/gha-run.sh @@ -77,6 +77,10 @@ function run_tests() { kubectl delete namespace kata-containers-k8s-tests &> /dev/null || true sed -i -e "s|quay.io/kata-containers/kata-deploy:latest|${DOCKER_REGISTRY}/${DOCKER_REPO}:${DOCKER_TAG}|g" "${tools_dir}/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml" + + # Enable debug for Kata Containers + yq write -i "${tools_dir}/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml" 'spec.template.spec.containers[0].env[1].value' "\"yes\"" + if [ "${KATA_HOST_OS}" = "cbl-mariner" ]; then yq write -i "${tools_dir}/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml" 'spec.template.spec.containers[0].env[+].name' "HOST_OS" yq write -i "${tools_dir}/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml" 'spec.template.spec.containers[0].env[-1].value' "${KATA_HOST_OS}"