File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -171,4 +171,4 @@ $(CONTROLLER_GEN): $(LOCALBIN)
171
171
.PHONY : envtest
172
172
envtest : $(ENVTEST ) # # Download envtest-setup locally if necessary.
173
173
$(ENVTEST ) : $(LOCALBIN )
174
- test -s $(LOCALBIN ) /setup-envtest || GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
174
+ test -s $(LOCALBIN ) /setup-envtest || GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$( ENVTEST_VERSION )
Original file line number Diff line number Diff line change 1
1
CHART_TESTING_VERSION := 3.10.1
2
2
CONTROLLER_TOOLS_VERSION := v0.14.0
3
+ # ENVTEST_VERSION is usually latest, but might need to be pinned from time to time.
4
+ # Version pinning is needed due to version incompatibility between controller-runtime and setup-envtest.
5
+ # For more information: https://github.com/kubernetes-sigs/controller-runtime/issues/2744
6
+ ENVTEST_VERSION := bf15e44028f908c790721fc8fe67c7bf2d06a611
3
7
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
4
8
# NOTE: the suffix .x means wildcard match so specifying the latest patch version.
5
9
ENVTEST_K8S_VERSION := 1.29.x
You can’t perform that action at this time.
0 commit comments