From 2b2b9d940636b022b3e1f62bd89068ee17f441f1 Mon Sep 17 00:00:00 2001 From: Shruthi Kumar Date: Tue, 28 May 2024 15:51:52 -0500 Subject: [PATCH] Revert "Update kubebuilder to the latest working version" (#7632) Reverts radius-project/radius#7629 This was fixed as per the convo in https://github.com/kubernetes-sigs/controller-runtime/issues/2838. It looks like the binaries weren't released for the version of Kubernetes that we were using (they had up until 1.24 but we were using 1.23) Fixes: #7630 --------- Signed-off-by: sk593 --- build/test.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/test.mk b/build/test.mk index 712383ba3c..8c26c71422 100644 --- a/build/test.mk +++ b/build/test.mk @@ -22,7 +22,7 @@ RADIUS_CONTAINER_LOG_PATH ?=./dist/container_logs REL_VERSION ?=latest DOCKER_REGISTRY ?=ghcr.io/radius-project/dev ENVTEST_ASSETS_DIR=$(shell pwd)/bin -K8S_VERSION=1.23.* +K8S_VERSION=1.30.* ENV_SETUP=$(GOBIN)/setup-envtest$(BINARY_EXT) # Use gotestsum if available, otherwise use go test. We want to enable testing with just 'make test' @@ -49,7 +49,7 @@ test: test-get-envtools ## Runs unit tests, excluding kubernetes controller test .PHONY: test-get-envtools test-get-envtools: @echo "$(ARROW) Installing Kubebuilder test tools..." - $(call go-install-tool,$(ENV_SETUP),sigs.k8s.io/controller-runtime/tools/setup-envtest@v0.0.0-20240521074430-fbb7d370bebc) + $(call go-install-tool,$(ENV_SETUP),sigs.k8s.io/controller-runtime/tools/setup-envtest@latest) @echo "$(ARROW) Instructions:" @echo "$(ARROW) Set environment variable KUBEBUILDER_ASSETS for tests." @echo "$(ARROW) KUBEBUILDER_ASSETS=\"$(shell $(ENV_SETUP) use -p path ${K8S_VERSION} --arch amd64)\""