Skip to content

Commit

Permalink
just pods
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius committed Aug 6, 2024
1 parent acc0d63 commit 0a989e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a989e7

Please sign in to comment.