Skip to content

Commit 2f28647

Browse files
committed
print-api7-ingress-system-logs
1 parent c4d0112 commit 2f28647

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/e2e-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,8 @@ jobs:
8282
API7_EE_LICENSE: ${{ secrets.API7_EE_LICENSE }}
8383
run: |
8484
make e2e-test
85+
86+
- name: Pint Ingress Controller Logs
87+
if: failure()
88+
run: |
89+
make print-api7-ingress-system-logs

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ gofmt: ## Apply go fmt
264264
@go fmt ./...
265265
.PHONY: gofmt
266266

267+
print-api7-ingress-system-logs:
268+
@kubectl get pods -o=name -n api7-ingress-system | xargs -I{} bash -c "echo ================= {} ==================== && kubectl logs --all-containers -n api7-ingress-system {} && echo ================= {} ===================="
269+
267270
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
268271
# $1 - target path with name of binary
269272
# $2 - package url which can be installed

0 commit comments

Comments
 (0)