diff --git a/Makefile b/Makefile index 2d415e1d9..4cd735830 100644 --- a/Makefile +++ b/Makefile @@ -129,10 +129,8 @@ docker-push-w-buildx: --push \ --platform ${IMG_PLATFORM} -# find or download controller-gen -# download controller-gen if necessary +# download controller-gen v0.19.0 controller-gen: -ifeq (, $(shell which controller-gen)) @{ \ set -e ;\ CONTROLLER_GEN_TMP_DIR=$$(mktemp -d) ;\ @@ -142,9 +140,6 @@ ifeq (, $(shell which controller-gen)) rm -rf $$CONTROLLER_GEN_TMP_DIR ;\ } CONTROLLER_GEN=$(GOBIN)/controller-gen -else -CONTROLLER_GEN=$(shell which controller-gen) -endif # find or download mockgen # download mockgen if necessary