Skip to content

Commit 4901b9b

Browse files
committed
Collect deployments, functions and configmaps on test failure
1 parent f3fde22 commit 4901b9b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/test-e2e.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ jobs:
6464
run: |
6565
mkdir -p /tmp/k8s-artifacts
6666
kubectl logs -n func-operator-system -l control-plane=controller-manager --tail=-1 --all-containers --prefix --timestamps > /tmp/k8s-artifacts/func-operator.log
67-
kubectl get functions -A -o yaml > /tmp/functions.yaml
67+
for resource in functions deployments configmaps; do
68+
kubectl get ${resource} -A -o yaml > /tmp/k8s-artifacts/${resource}.yaml
69+
done
6870
6971
- name: Upload Kubernetes artifacts
7072
if: failure()

0 commit comments

Comments
 (0)