From 39247964088c29a936dd2dd29a5e4e636782f2bd Mon Sep 17 00:00:00 2001 From: Denis Mironov Date: Wed, 12 Jun 2024 17:27:58 +0200 Subject: [PATCH 1/2] save workflow logs after smoke-tests --- test/smoke/run-smoke-suite.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/smoke/run-smoke-suite.sh b/test/smoke/run-smoke-suite.sh index c1b6667..6666f80 100755 --- a/test/smoke/run-smoke-suite.sh +++ b/test/smoke/run-smoke-suite.sh @@ -58,7 +58,15 @@ function get_logs() { echo "#######################################" echo "###### ${CONTAINER} container logs ######" echo -e "#######################################\n" - kubectl logs -l "app.kubernetes.io/component=postanalytics" -c ${CONTAINER} --tail=-1 + kubectl logs -l "app.kubernetes.io/component=postanalytics" -c ${CONTAINER} --tail=-1 || true + echo -e "#######################################\n" + done + + for CONTAINER in sidecar-init-iptables sidecar-init-helper nginx; do + echo "#######################################" + echo "###### ${CONTAINER} container logs ######" + echo "#######################################\n" + kubectl logs -l "app.kubernetes.io/component=controller" -c ${CONTAINER} --tail=-1 || true echo -e "#######################################\n" done From 1580a34a591ef5a02d7df3d307bcb580d7300c94 Mon Sep 17 00:00:00 2001 From: Denis Mironov Date: Wed, 12 Jun 2024 18:03:37 +0200 Subject: [PATCH 2/2] fix app search --- test/smoke/run-smoke-suite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/smoke/run-smoke-suite.sh b/test/smoke/run-smoke-suite.sh index 6666f80..1b90c23 100755 --- a/test/smoke/run-smoke-suite.sh +++ b/test/smoke/run-smoke-suite.sh @@ -66,7 +66,7 @@ function get_logs() { echo "#######################################" echo "###### ${CONTAINER} container logs ######" echo "#######################################\n" - kubectl logs -l "app.kubernetes.io/component=controller" -c ${CONTAINER} --tail=-1 || true + kubectl logs -l "app=workload" -c ${CONTAINER} --tail=-1 || true echo -e "#######################################\n" done