Skip to content

Commit

Permalink
chore: add run.with-impersonate target
Browse files Browse the repository at this point in the history
Signed-off-by: Mattia Lavacca <[email protected]>
  • Loading branch information
mlavacca committed Nov 29, 2024
1 parent a902810 commit df0c1c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit df0c1c2

Please sign in to comment.