Skip to content

Commit

Permalink
More needed for podman workaround in kind-load
Browse files Browse the repository at this point in the history
  • Loading branch information
bentito committed Apr 25, 2024
1 parent d346691 commit 9033d64
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,16 @@ extension-developer-e2e: run image-registry test-ext-dev-e2e kind-clean
e2e-coverage:
COVERAGE_OUTPUT=./e2e-cover.out ./hack/e2e-coverage.sh

.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
@DEPLOY_TEMPLATE_IMG_NAME=quay.io/operator-framework/operator-controller:devel; \
TMP_FILE=temp_image.tar; \
podman tag $(IMG) $$DEPLOY_TEMPLATE_IMG_NAME; \
echo "Saving image to temporary file $$TMP_FILE"; \
podman save $$DEPLOY_TEMPLATE_IMG_NAME -o $$TMP_FILE; \
$(KIND) load image-archive $$TMP_FILE --name $(KIND_CLUSTER_NAME); \
rm $$TMP_FILE
else
@echo "Using Docker"
$(KIND) load docker-image $(IMG) --name $(KIND_CLUSTER_NAME)
Expand Down

0 comments on commit 9033d64

Please sign in to comment.