From dfc606448d42ab4b97a4874d38bbbed889ddb27b Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Sun, 17 Jan 2021 16:10:18 +0100 Subject: [PATCH] ci: emit a namespace report on failure This can help us capture and debug any intermittent failure that I've seen happen when I use this action in other repo's. For example, a failure to get calico up and running successfully. --- .github/workflows/test_k3s.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test_k3s.yml b/.github/workflows/test_k3s.yml index f610958..31d54fd 100644 --- a/.github/workflows/test_k3s.yml +++ b/.github/workflows/test_k3s.yml @@ -120,6 +120,15 @@ jobs: - name: Run network policies test run: helm test test-calico --logs + # GitHub Action reference: https://github.com/jupyterhub/action-k8s-namespace-report + - name: Kubernetes namespace report + if: always() + uses: jupyterhub/action-k8s-namespace-report@v1 + with: + # NOTE: This modifies the kubeconfig's current context's default + # namespace as of v1.0.1... + namespace: kube-system + test_install_k3s_options: runs-on: ubuntu-latest name: Test K3s options