File tree 2 files changed +6
-1
lines changed 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ SETUP_ENVTEST := $(BINDIR)/setup-envtest
147
147
setup-envtest : $(SETUP_ENVTEST ) # # Download setup-envtest locally if necessary
148
148
$(SETUP_ENVTEST ) :
149
149
# see https://github.com/kubernetes-sigs/controller-runtime/tree/master/tools/setup-envtest
150
- GOBIN=$(BINDIR ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
150
+ GOBIN=$(BINDIR ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$( ENVTEST_VERSION )
151
151
152
152
.PHONY : setup
153
153
setup : # Setup tools
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ KUBE_PROMETHEUS_VERSION := 0.13.0
14
14
KUBERNETES_VERSION ?= 1.28.0
15
15
TOPOLVM_VERSION := topolvm-chart-v14.0.0
16
16
17
+ # ENVTEST_VERSION is usually latest, but might need to be pinned from time to time.
18
+ # Version pinning is needed due to version incompatibility between controller-runtime and setup-envtest.
19
+ # For more information: https://github.com/kubernetes-sigs/controller-runtime/issues/2744
20
+ ENVTEST_VERSION := bf15e44028f908c790721fc8fe67c7bf2d06a611
21
+
17
22
ENVTEST_K8S_VERSION := $(shell echo $(KUBERNETES_VERSION ) | cut -d "." -f 1-2)
18
23
19
24
# Tools versions which are defined in go.mod
You can’t perform that action at this time.
0 commit comments