Skip to content

Commit 5863daa

Browse files
author
paulus
committed
Readded logs for pods.
1 parent 031e08f commit 5863daa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ jobs:
205205
valuesfile=$(basename ${{ matrix.values_file }} .yaml)
206206
echo "logname=${valuesfile%%-*}" >> $GITHUB_OUTPUT
207207
kubectl get events --all-namespaces --sort-by='.metadata.creationTimestamp' &> kube_events.log
208-
208+
for pod in $(kubectl get pod --field-selector=status.phase==Running -o name); do
209+
echo "::debug:: Created logs for pod $pod"
210+
kubectl logs $pod --all-containers=true &> ${pod}.log
211+
done
212+
ls
209213
kubectl get pods &> kube_status.log
210214
exit 1
211215
fi;

0 commit comments

Comments
 (0)