Skip to content

Commit 9033d64

Browse files
committed
More needed for podman workaround in kind-load
1 parent d346691 commit 9033d64

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,16 @@ extension-developer-e2e: run image-registry test-ext-dev-e2e kind-clean
149149
e2e-coverage:
150150
COVERAGE_OUTPUT=./e2e-cover.out ./hack/e2e-coverage.sh
151151

152-
.PHONY: kind-load
153152
kind-load: $(KIND) #EXHELP Loads the currently constructed image onto the cluster.
154153
ifeq ($(CONTAINER_RUNTIME),podman)
155154
@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
155+
@DEPLOY_TEMPLATE_IMG_NAME=quay.io/operator-framework/operator-controller:devel; \
156+
TMP_FILE=temp_image.tar; \
157+
podman tag $(IMG) $$DEPLOY_TEMPLATE_IMG_NAME; \
158+
echo "Saving image to temporary file $$TMP_FILE"; \
159+
podman save $$DEPLOY_TEMPLATE_IMG_NAME -o $$TMP_FILE; \
160+
$(KIND) load image-archive $$TMP_FILE --name $(KIND_CLUSTER_NAME); \
161+
rm $$TMP_FILE
159162
else
160163
@echo "Using Docker"
161164
$(KIND) load docker-image $(IMG) --name $(KIND_CLUSTER_NAME)

0 commit comments

Comments
 (0)