From 79d64e86c10e285b54426011f649c9a563db8c86 Mon Sep 17 00:00:00 2001 From: Tayler Geiger Date: Tue, 30 Apr 2024 13:22:06 -0500 Subject: [PATCH] Simplify kind-load (#803) This simplified logic should work on both podman and docker, removing our need to have distinct ways of handling the image loading. --- Makefile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 1902b0adf..c616588b3 100644 --- a/Makefile +++ b/Makefile @@ -154,15 +154,7 @@ e2e-coverage: .PHONY: kind-load 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 -else - @echo "Using Docker" - $(KIND) load docker-image $(IMG) --name $(KIND_CLUSTER_NAME) -endif + $(CONTAINER_RUNTIME) save $(IMG) | $(KIND) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME) kind-deploy: export MANIFEST="./operator-controller.yaml" kind-deploy: manifests $(KUSTOMIZE) #EXHELP Install controller and dependencies onto the kind cluster.