Skip to content

Commit 93d8def

Browse files
committed
Install setup-envtest from release downloads
1 parent 5439688 commit 93d8def

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hack/tools.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ $(KYVERNO): $(call tool_version_file,$(KYVERNO),$(KYVERNO_VERSION))
6363
chmod +x $(KYVERNO)
6464

6565
SETUP_ENVTEST := $(TOOLS_BIN_DIR)/setup-envtest
66-
# upgrade setup-envtest every time we upgrade controller-runtime, although the resulting version might be newer than the controller-runtime release
67-
SETUP_ENVTEST_VERSION ?= $(call version_gomod,sigs.k8s.io/controller-runtime)
68-
$(SETUP_ENVTEST): $(call tool_version_file,$(SETUP_ENVTEST),$(SETUP_ENVTEST_VERSION))
69-
GOBIN=$(abspath $(TOOLS_BIN_DIR)) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@release-$(subst v,,$(shell echo $(SETUP_ENVTEST_VERSION) | cut -d. -f1,2))
66+
CONTROLLER_RUNTIME_VERSION ?= $(call version_gomod,sigs.k8s.io/controller-runtime)
67+
$(SETUP_ENVTEST): $(call tool_version_file,$(SETUP_ENVTEST),$(CONTROLLER_RUNTIME_VERSION))
68+
curl -Lo $(SETUP_ENVTEST) https://github.com/kubernetes-sigs/controller-runtime/releases/download/$(CONTROLLER_RUNTIME_VERSION)/setup-envtest-$(shell uname -s | tr '[:upper:]' '[:lower:]')-$(shell uname -m | sed 's/aarch64/arm64/')
69+
chmod +x $(SETUP_ENVTEST)
7070

7171
SKAFFOLD := $(TOOLS_BIN_DIR)/skaffold
7272
# renovate: datasource=github-releases depName=GoogleContainerTools/skaffold

0 commit comments

Comments
 (0)