From 4bb6047cc1c6c715f5cb3d5978b5cd29d4619951 Mon Sep 17 00:00:00 2001 From: Stephen Rust Date: Thu, 11 Jan 2024 22:09:12 +0000 Subject: [PATCH] Support linux for kind clusters s/x86_64/amd64 --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9f8f81eb2..039461107 100644 --- a/Makefile +++ b/Makefile @@ -203,7 +203,11 @@ $(TILT): $(LOCALBIN) kind: $(KIND) ## Download kind locally if necessary. If wrong version is installed, it will be overwritten. $(KIND): $(LOCALBIN) test -s $(KIND) && $(KIND) version | grep -q $(KIND_VERSION) || \ - (cd $(LOCALBIN); curl -Lso ./kind https://kind.sigs.k8s.io/dl/v$(KIND_VERSION)/kind-$(OS)-$(ARCH) && chmod +x kind) + (KIND_ARCH=$(ARCH); \ + if [ $$KIND_ARCH = "x86_64" ]; then \ + KIND_ARCH=amd64; \ + fi; \ + cd $(LOCALBIN); curl -f -Lso ./kind https://kind.sigs.k8s.io/dl/v$(KIND_VERSION)/kind-$(OS)-$$KIND_ARCH && chmod +x kind) .PHONY: envtest envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.