Skip to content

Commit 9e414d7

Browse files
committed
Workaround for podman for kind load
1 parent 3a50055 commit 9e414d7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,15 @@ e2e-coverage:
151151

152152
.PHONY: kind-load
153153
kind-load: $(KIND) #EXHELP Loads the currently constructed image onto the cluster.
154+
ifeq ($(CONTAINER_RUNTIME),podman)
155+
@echo "Using Podman"
156+
podman save $(IMG) -o $(IMG).tar
157+
$(KIND) load image-archive $(IMG).tar --name $(KIND_CLUSTER_NAME)
158+
rm $(IMG).tar
159+
else
160+
@echo "Using Docker"
154161
$(KIND) load docker-image $(IMG) --name $(KIND_CLUSTER_NAME)
162+
endif
155163

156164
kind-deploy: export MANIFEST="./operator-controller.yaml"
157165
kind-deploy: manifests $(KUSTOMIZE) #EXHELP Install controller and dependencies onto the kind cluster.

0 commit comments

Comments
 (0)