Skip to content

Commit

Permalink
Add more information to the e2e-debug
Browse files Browse the repository at this point in the history
Information about the gatekeeper pods might help if those tests fail.

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
  • Loading branch information
JustinKuli committed Apr 20, 2023
1 parent 588bb1b commit a51eea7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,15 @@ e2e-stop-instrumented:
e2e-debug:
@echo local controller log:
-cat build/_output/controller.log
@echo pods on hub cluster
-kubectl get pods -A --kubeconfig=$(HUB_CONFIG)
-kubectl get pods -A -o yaml --kubeconfig=$(HUB_CONFIG)
@echo pods on managed cluster
-kubectl get pods -A --kubeconfig=$(MANAGED_CONFIG)
-kubectl get pods -A -o yaml --kubeconfig=$(MANAGED_CONFIG)
@echo gatekeeper logs on managed cluster
-kubectl logs -n gatekeeper-system -l control-plane=audit-controller --prefix=true --since=5m --kubeconfig=$(MANAGED_CONFIG)
-kubectl logs -n gatekeeper-system -l control-plane=controller-manager --prefix=true --since=5m --kubeconfig=$(MANAGED_CONFIG)
@echo remote controller log:
-kubectl logs $$(kubectl get pods -n $(KIND_NAMESPACE) -o name --kubeconfig=$(MANAGED_CONFIG) | grep $(IMG)) -n $(KIND_NAMESPACE) --kubeconfig=$(MANAGED_CONFIG)

Expand Down

0 comments on commit a51eea7

Please sign in to comment.