From be8277a2453dc5b95bf0fe7b9ea19bba52795e08 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Wed, 8 Mar 2023 21:07:54 +0100 Subject: [PATCH] Update controller-gen version Plus include the option to overwrite this using `CONTROLLER_GEN_VERSION=v0.x.x make install-envtest`. Signed-off-by: Hidde Beydals --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 562c29d..63a9df7 100644 --- a/Makefile +++ b/Makefile @@ -87,9 +87,10 @@ manifests-release: # Find or download controller-gen CONTROLLER_GEN = $(shell pwd)/bin/controller-gen +CONTROLLER_GEN_VERSION ?= v0.11.1 .PHONY: controller-gen controller-gen: ## Download controller-gen locally if necessary. - $(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.8.0) + $(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_GEN_VERSION)) ENVTEST_ASSETS_DIR=$(shell pwd)/testbin ENVTEST_KUBERNETES_VERSION?=latest