Skip to content

Commit 815aeef

Browse files
export kubebuilder_assets in makefile
Signed-off-by: varshaprasad96 <[email protected]>
1 parent 5dd1d91 commit 815aeef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ e2e_targets := test-e2e $(e2e_tests)
144144

145145
.PHONY: test-e2e-setup
146146
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)
147148
test-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
@@ -152,7 +153,6 @@ test-e2e-setup: build envtest
152153
# install envtest binary
153154
envtest:
154155
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
156156

157157
.PHONY: test-e2e-teardown
158158
test-e2e-teardown:

0 commit comments

Comments
 (0)