From 62017c9f0504c258f31912c2137f7065f0f5ebb0 Mon Sep 17 00:00:00 2001 From: Tayler Geiger Date: Mon, 29 Apr 2024 13:34:22 -0500 Subject: [PATCH] Sanitize temporary filename for podman image load --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e5de9b442..11a4a7532 100644 --- a/Makefile +++ b/Makefile @@ -156,9 +156,9 @@ e2e-coverage: kind-load: $(KIND) #EXHELP Loads the currently constructed image onto the cluster. ifeq ($(CONTAINER_RUNTIME),podman) @echo "Using Podman" - podman save $(IMG) -o $(IMG).tar - $(KIND) load image-archive $(IMG).tar --name $(KIND_CLUSTER_NAME) - rm $(IMG).tar + $(CONTAINER_RUNTIME) save $(IMG) -o /tmp/$(shell echo $(IMG) | sed 's/[/:]/-/g').tar + $(KIND) load image-archive /tmp/$(shell echo $(IMG) | sed 's/[/:]/-/g').tar --name $(KIND_CLUSTER_NAME) + rm /tmp/$(shell echo $(IMG) | sed 's/[/:]/-/g').tar else @echo "Using Docker" $(KIND) load docker-image $(IMG) --name $(KIND_CLUSTER_NAME)