Skip to content

Commit 0034b03

Browse files
JustinKuliopenshift-ci[bot]
authored andcommitted
Add more information to the e2e-debug
Information about the gatekeeper pods might help if those tests fail. Signed-off-by: Justin Kulikauskas <[email protected]>
1 parent 8c251da commit 0034b03

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,15 @@ e2e-stop-instrumented:
337337
e2e-debug:
338338
@echo local controller log:
339339
-cat build/_output/controller.log
340+
@echo pods on hub cluster
341+
-kubectl get pods -A --kubeconfig=$(HUB_CONFIG)
342+
-kubectl get pods -A -o yaml --kubeconfig=$(HUB_CONFIG)
343+
@echo pods on managed cluster
344+
-kubectl get pods -A --kubeconfig=$(MANAGED_CONFIG)
345+
-kubectl get pods -A -o yaml --kubeconfig=$(MANAGED_CONFIG)
346+
@echo gatekeeper logs on managed cluster
347+
-kubectl logs -n gatekeeper-system -l control-plane=audit-controller --prefix=true --since=5m --kubeconfig=$(MANAGED_CONFIG)
348+
-kubectl logs -n gatekeeper-system -l control-plane=controller-manager --prefix=true --since=5m --kubeconfig=$(MANAGED_CONFIG)
340349
@echo remote controller log:
341350
-kubectl logs $$(kubectl get pods -n $(KIND_NAMESPACE) -o name --kubeconfig=$(MANAGED_CONFIG) | grep $(IMG)) -n $(KIND_NAMESPACE) --kubeconfig=$(MANAGED_CONFIG)
342351

0 commit comments

Comments
 (0)