Skip to content

Commit 3bf01df

Browse files
committed
Work around lack of kubebuilder-tools for darwin/arm64
1 parent 1b55213 commit 3bf01df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,11 @@ e2e-framework: ## Builds the CAPI e2e framework
435435

436436
ARTIFACTS ?= ${ROOT_DIR}/_artifacts
437437

438-
KUBEBUILDER_ASSETS ?= $(shell $(SETUP_ENVTEST) use --use-env -p path $(KUBEBUILDER_ENVTEST_KUBERNETES_VERSION))
438+
ifeq ($(shell go env GOOS),darwin) # Use the darwin/amd64 binary until an arm64 version is available
439+
KUBEBUILDER_ASSETS ?= $(shell $(SETUP_ENVTEST) use --use-env -p path --arch amd64 $(KUBEBUILDER_ENVTEST_KUBERNETES_VERSION))
440+
else
441+
KUBEBUILDER_ASSETS ?= $(shell $(SETUP_ENVTEST) use --use-env -p path $(KUBEBUILDER_ENVTEST_KUBERNETES_VERSION))
442+
endif
439443

440444
.PHONY: test
441445
test: $(SETUP_ENVTEST) ## Run unit and integration tests

0 commit comments

Comments
 (0)