From 0a989e7c163e4cdaffd670905e9b2120a6d28daf Mon Sep 17 00:00:00 2001 From: pmacius Date: Tue, 6 Aug 2024 10:37:10 +0200 Subject: [PATCH] just pods --- .github/workflows/build_and_test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index df72f5b4..f18afb28 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -202,9 +202,8 @@ jobs: if: always() && steps.helm_install.outcome != 'skipped' run: | mkdir -p logs - for pod in $(kubectl get pods --all-namespaces -o jsonpath='{.items[*].metadata.name}'); do - namespace=$(kubectl get pod $pod --all-namespaces -o jsonpath='{.items[*].metadata.namespace}') - kubectl logs $pod -n $namespace > logs/${namespace}_${pod}.log + for pod in $(kubectl get pods -n default -o jsonpath='{.items[*].metadata.name}'); do + kubectl logs $pod -n default > logs/${pod}.log done - name: Upload logs as artifact