diff --git a/.github/workflows/test-integration.yaml b/.github/workflows/test-integration.yaml index 6030d34b..c7483c75 100644 --- a/.github/workflows/test-integration.yaml +++ b/.github/workflows/test-integration.yaml @@ -43,6 +43,16 @@ jobs: run: ./hack/patch-hosts.sh - name: Integration Test run: make test-integration + - name: Dump Cluster Logs + if: always() + run: | + echo "::group::cluster events" + kubectl get events -A + echo "::endgroup::" + + echo "::group::cluster containers logs" + stern '.*' --all-namespaces --no-follow + echo "::endgroup::" - uses: codecov/codecov-action@v3 with: files: ./coverage.txt diff --git a/hack/binaries.sh b/hack/binaries.sh index b8b32f8c..6639db29 100755 --- a/hack/binaries.sh +++ b/hack/binaries.sh @@ -16,6 +16,7 @@ main() { local kind_version=v0.16.0 local dapr_version=v1.9.1 local helm_version=v3.11.0 + local stern_version=1.25.0 local em=$(tput bold)$(tput setaf 2) local me=$(tput sgr0) @@ -27,6 +28,7 @@ main() { install_yq install_dapr install_helm + install_stern echo "${em}DONE${me}" @@ -72,4 +74,11 @@ install_helm() { helm version } +install_stern() { + echo 'Installing stern...' + curl -sSL "https://github.com/stern/stern/releases/download/v${stern_version}/stern_${stern_version}_linux_amd64.tar.gz" | \ + tar fxz - -C /usr/local/bin/ stern + stern -v +} + main "$@"