Skip to content

Commit 72cd893

Browse files
authored
Merge pull request #6092 from mboersma/kubebuilder-tools-m1-fix
🐛 Work around lack of kubebuilder-tools for darwin/arm64
2 parents 21be8e8 + 3bf01df commit 72cd893

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
@@ -484,7 +484,11 @@ serve-book: ## Build and serve the book (with live-reload)
484484

485485
ARTIFACTS ?= ${ROOT_DIR}/_artifacts
486486

487-
KUBEBUILDER_ASSETS ?= $(shell $(SETUP_ENVTEST) use --use-env -p path $(KUBEBUILDER_ENVTEST_KUBERNETES_VERSION))
487+
ifeq ($(shell go env GOOS),darwin) # Use the darwin/amd64 binary until an arm64 version is available
488+
KUBEBUILDER_ASSETS ?= $(shell $(SETUP_ENVTEST) use --use-env -p path --arch amd64 $(KUBEBUILDER_ENVTEST_KUBERNETES_VERSION))
489+
else
490+
KUBEBUILDER_ASSETS ?= $(shell $(SETUP_ENVTEST) use --use-env -p path $(KUBEBUILDER_ENVTEST_KUBERNETES_VERSION))
491+
endif
488492

489493
.PHONY: test
490494
test: $(SETUP_ENVTEST) ## Run unit and integration tests

0 commit comments

Comments
 (0)