From 0034b03fe8a36868903f07484221b1cea1b5dd6c Mon Sep 17 00:00:00 2001 From: Justin Kulikauskas Date: Thu, 20 Apr 2023 13:31:46 -0400 Subject: [PATCH] Add more information to the e2e-debug Information about the gatekeeper pods might help if those tests fail. Signed-off-by: Justin Kulikauskas --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 34e023d0..af099297 100644 --- a/Makefile +++ b/Makefile @@ -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)