From df0c1c248c38b490592f538567c27793a1e1ef29 Mon Sep 17 00:00:00 2001 From: Mattia Lavacca Date: Fri, 29 Nov 2024 12:23:19 +0100 Subject: [PATCH] chore: add run.with-impersonate target Signed-off-by: Mattia Lavacca --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index af3fcfcd..3b88d94d 100644 --- a/Makefile +++ b/Makefile @@ -502,6 +502,11 @@ _ensure-kong-system-namespace: run: webhook-certs-dir manifests generate install.all _ensure-kong-system-namespace install.rbacs @$(MAKE) _run +# Run a controller from your host and make it impersonate the controller-manager service account from kong-system namespace. +.PHONY: run.with_impersonate +run.with_impersonate: webhook-certs-dir manifests generate install.all _ensure-kong-system-namespace install.rbacs + @$(MAKE) _run.with-impersonate + KUBECONFIG ?= $(HOME)/.kube/config # Run the operator without checking any preconditions, installing CRDs etc.