From e3658bbb3e02aa8a14e936dccfaf4a5b7a4e0741 Mon Sep 17 00:00:00 2001 From: Yury Tsarev Date: Mon, 10 Jun 2024 01:42:08 +0200 Subject: [PATCH] Make `x86_64->amd64` arch param conversion to match image names Signed-off-by: Yury Tsarev --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9b437b8f68..062bdffa62 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,10 @@ endif ############################### # CONSTANTS ############################### +ARCH ?= $(shell uname -m) +ifeq ($(ARCH), x86_64) + ARCH=amd64 +endif CLUSTERS_NUMBER ?= 2 CLUSTER_IDS = $(shell seq $(CLUSTERS_NUMBER)) CLUSTER_NAME ?= test-gslb @@ -148,7 +152,7 @@ deploy-test-version: ## Upgrade k8gb to the test version on existing clusters @for c in $(CLUSTER_IDS); do \ echo -e "\n$(CYAN)$(CLUSTER_NAME)$$c:$(NC)" ;\ - k3d image import $(REPO):$(SEMVER)-$$(uname -m) -c $(CLUSTER_NAME)$$c ;\ + k3d image import $(REPO):$(SEMVER)-$(ARCH) -c $(CLUSTER_NAME)$$c ;\ done @for c in $(CLUSTER_IDS); do \