From 835e787ba071d53ecc6c3ed7bbc6d2d7af5d38c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A5=96=E5=BB=BA?= Date: Tue, 20 Feb 2024 14:03:35 +0800 Subject: [PATCH] ci: collect ko logs for all kind clusters (#3744) Signed-off-by: zhangzujian --- .github/workflows/build-x86-image.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-x86-image.yaml b/.github/workflows/build-x86-image.yaml index b3ff5b1db10..260d5d22bb8 100644 --- a/.github/workflows/build-x86-image.yaml +++ b/.github/workflows/build-x86-image.yaml @@ -1098,15 +1098,20 @@ jobs: - name: kubectl ko log if: failure() run: | - make kubectl-ko-log - mv kubectl-ko-log.tar.gz kube-ovn-ic-conformance-${{ matrix.ip-family }}-e2e-ko-log.tar.gz + for cluster in `kind get clusters`; do + kubectl config use-context kind-$cluster + make kubectl-ko-log + mv kubectl-ko-log.tar.gz kube-ovn-ic-conformance-e2e-${{ matrix.ip-family }}-$cluster-ko-log.tar.gz + done + tar zcvf kube-ovn-ic-conformance-e2e-${{ matrix.ip-family }}-ko-log.tar.gz \ + `kind get clusters | xargs -I {} echo kube-ovn-ic-conformance-e2e-${{ matrix.ip-family }}-{}-ko-log.tar.gz` - name: upload kubectl ko log uses: actions/upload-artifact@v4 if: failure() with: - name: kube-ovn-ic-conformance-${{ matrix.ip-family }}-e2e-ko-log - path: kube-ovn-ic-conformance-${{ matrix.ip-family }}-e2e-ko-log.tar.gz + name: kube-ovn-ic-conformance-e2e-${{ matrix.ip-family }}-ko-log + path: kube-ovn-ic-conformance-e2e-${{ matrix.ip-family }}-ko-log.tar.gz chart-test: name: Chart Installation/Uninstallation Test