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)
144
144
145
145
.PHONY : test-e2e-setup
146
146
export 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)
147
148
test-e2e-setup : build envtest
148
149
$(SCRIPTS_DIR ) /fetch kind 0.11.0
149
150
$(SCRIPTS_DIR ) /fetch kubectl $(K8S_VERSION ) # Install kubectl AFTER envtest because envtest includes its own kubectl binary
150
151
[[ " ` $( TOOLS_DIR) /kind get clusters` " =~ " $( KIND_CLUSTER) " ]] || $(TOOLS_DIR ) /kind create cluster --image=" kindest/node:v$( K8S_VERSION) " --name $(KIND_CLUSTER )
151
152
152
153
# install envtest binary
153
154
envtest :
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
156
156
157
157
.PHONY : test-e2e-teardown
158
158
test-e2e-teardown :
You can’t perform that action at this time.
0 commit comments