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)