File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -144,15 +144,15 @@ e2e_targets := test-e2e $(e2e_tests)
144144
145145.PHONY : test-e2e-setup
146146export KIND_CLUSTER := operator-sdk-e2e
147+ export KUBEBUILDER_ASSETS =$(shell $(shell go env GOPATH) /bin/setup-envtest use $(K8S_VERSION ) --bin-dir tools/bin/ -p path)
147148test-e2e-setup : build envtest
148149$(SCRIPTS_DIR ) /fetch kind 0.11.0
149150$(SCRIPTS_DIR ) /fetch kubectl $(K8S_VERSION ) # Install kubectl AFTER envtest because envtest includes its own kubectl binary
150151[[ " ` $( TOOLS_DIR) /kind get clusters` " =~ " $( KIND_CLUSTER) " ]] || $(TOOLS_DIR ) /kind create cluster --image=" kindest/node:v$( K8S_VERSION) " --name $(KIND_CLUSTER )
151152
152153# install envtest binary
153154envtest :
154- go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
155- $(shell go env GOPATH) /bin/setup-envtest use $(K8S_VERSION ) --bin-dir tools/bin/ -p env
155+ go install $(GO_BUILD_ARGS ) sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
156156
157157.PHONY : test-e2e-teardown
158158test-e2e-teardown :
You can’t perform that action at this time.
0 commit comments