Skip to content

Commit 4b83e06

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ 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
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
153154
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
156156

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

0 commit comments

Comments
 (0)