From 140bbcc6f9b2070eec49fa7a486e8a62040bd899 Mon Sep 17 00:00:00 2001 From: Kevin Fan Date: Tue, 26 Nov 2024 16:13:52 +0000 Subject: [PATCH] makefile: add --load flag only for podman build (#1048) Signed-off-by: KevFan --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 64736dc9e..2e9e797f9 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,9 @@ OS = $(shell uname -s | tr '[:upper:]' '[:lower:]') ARCH := $(shell uname -m | tr '[:upper:]' '[:lower:]') # Container Engine to be used for building image and with kind CONTAINER_ENGINE ?= docker +ifeq (podman,$(CONTAINER_ENGINE)) + CONTAINER_ENGINE_EXTRA_FLAGS ?= --load +endif # VERSION defines the project version for the bundle. # Update this value when you upgrade the version of your project. @@ -353,7 +356,7 @@ docker-build: ## Build docker image with the manager. --build-arg DIRTY=$(DIRTY) \ --build-arg VERSION=v$(VERSION) \ --build-arg QUAY_IMAGE_EXPIRY=$(QUAY_IMAGE_EXPIRY) \ - --load \ + $(CONTAINER_ENGINE_EXTRA_FLAGS) \ -t $(IMG) . docker-push: ## Push docker image with the manager.