src: more verbose output (#1810)

* fixup: more verbose output

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: refactor extract version into variable

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
Matej Vasek 2023-06-13 19:58:45 +02:00 committed by GitHub
parent 83bc889b6c
commit 8a8639ae00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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 "$@"