Skip to content

Commit 34e59c2

Browse files
committed
add debug code in kind-e2e.yml
Signed-off-by: “yingwang-0320” <[email protected]>
1 parent 07d5128 commit 34e59c2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/kind-e2e.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
- name: Test simple pod
7373
working-directory: ./e2e
7474
run: ./test-simple-pod.sh
75+
continue-on-error: true
7576

7677
- name: Test macvlan1
7778
working-directory: ./e2e
@@ -88,6 +89,20 @@ jobs:
8889
# - name: Test DRA integration
8990
# working-directory: ./e2e
9091
# run: ./test-dra-integration.sh
92+
#
93+
- name: Collect Debug Info on Failure
94+
if: failure()
95+
run: |
96+
echo "--- FAILED POD DESCRIPTION ---"
97+
kubectl describe pod simple-centos1
98+
99+
echo "--- KUBECTL EVENTS ---"
100+
kubectl get events --field-selector involvedObject.name=simple-centos1
101+
102+
kind export logs --name kind /tmp/kind-logs
103+
104+
echo "--- KUBELET LOGS FROM CONTROL-PLANE ---"
105+
cat /tmp/kind-logs/kind-control-plane/kubelet.log
91106
92107
- name: Test subdirectory CNI chaining
93108
if: ${{ matrix.multus-manifest == 'multus-daemonset-thick.yml' }}

0 commit comments

Comments
 (0)