From dfd41997a9c3c01c9af4d637d72f3790303445d8 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Thu, 15 Dec 2022 13:06:51 +0200 Subject: [PATCH] Pin envtest to Kubernetes v1.25 Signed-off-by: Stefan Prodan --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4616de7f..a4f753a2 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,9 @@ GO_TEST_ARGS ?= -race # Architecture to use envtest with ENVTEST_ARCH ?= amd64 +# Kubernetes versions to use envtest with +ENVTEST_KUBERNETES_VERSION?=1.25 + all: $(MAKE) $(targets) @@ -67,7 +70,6 @@ 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) ENVTEST_ASSETS_DIR=$(shell pwd)/testbin -ENVTEST_KUBERNETES_VERSION?=latest install-envtest: setup-envtest mkdir -p ${ENVTEST_ASSETS_DIR} $(ENVTEST) use $(ENVTEST_KUBERNETES_VERSION) --arch=$(ENVTEST_ARCH) --bin-dir=$(ENVTEST_ASSETS_DIR)