From 6e2c6c26ad3a4d5fe978a8cdda28903146d8ef25 Mon Sep 17 00:00:00 2001 From: Antonin Stefanutti Date: Wed, 22 Feb 2023 10:39:50 +0100 Subject: [PATCH] e2e: Switch workspace before printing logs --- .github/workflows/e2e.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index d44b82c..765d859 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -255,6 +255,11 @@ jobs: - name: Print camel-kcp logs if: ${{ always() }} run: | + export KUBECONFIG=$(pwd)/.kcp/admin.kubeconfig + + kubectl config use-context root + kubectl kcp ws root:camel-k + echo "Printing camel-kcp logs" kubectl logs -n camel-kcp --tail -1 -l app.kubernetes.io/name=camel-k -l app.kubernetes.io/component=controller-manager