From a751fdf790d315a75af053613493ba7ffe2fd94e Mon Sep 17 00:00:00 2001 From: Nitin Goyal Date: Fri, 16 Aug 2024 11:12:52 +0530 Subject: [PATCH] Makefile: provide a mechanism to change the kube-rbac-proxy image Signed-off-by: Nitin Goyal --- Makefile | 4 ++++ config/default/manager_auth_proxy_patch.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 759fd612..260018d8 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,8 @@ NAMESPACE ?= $(NAME_PREFIX)system IMG ?= $(IMAGE_REGISTRY)/$(REGISTRY_NAMESPACE)/$(IMAGE_NAME):$(IMAGE_TAG) +KUBE_RBAC_PROXY_IMG ?= gcr.io/kubebuilder/kube-rbac-proxy:v0.16.0 + # ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. ENVTEST_K8S_VERSION = 1.29.0 @@ -51,6 +53,8 @@ patches: images: - name: controller newName: ${IMG} +- name: kube-rbac-proxy + newName: ${KUBE_RBAC_PROXY_IMG} resources: - ../config/default endef diff --git a/config/default/manager_auth_proxy_patch.yaml b/config/default/manager_auth_proxy_patch.yaml index 4c3c2760..30b9e2a1 100644 --- a/config/default/manager_auth_proxy_patch.yaml +++ b/config/default/manager_auth_proxy_patch.yaml @@ -15,7 +15,7 @@ spec: capabilities: drop: - "ALL" - image: gcr.io/kubebuilder/kube-rbac-proxy:v0.16.0 + image: kube-rbac-proxy args: - "--secure-listen-address=0.0.0.0:8443" - "--upstream=http://127.0.0.1:8080/"