File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,15 @@ e2e-coverage:
151
151
152
152
.PHONY : kind-load
153
153
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"
154
161
$(KIND) load docker-image $(IMG) --name $(KIND_CLUSTER_NAME)
162
+ endif
155
163
156
164
kind-deploy : export MANIFEST="./operator-controller.yaml"
157
165
kind-deploy : manifests $(KUSTOMIZE ) # EXHELP Install controller and dependencies onto the kind cluster.
@@ -215,7 +223,7 @@ run: docker-build kind-cluster kind-load kind-deploy #HELP Build the operator-co
215
223
216
224
.PHONY : docker-build
217
225
docker-build : build-linux # EXHELP Build docker image for operator-controller with GOOS=linux and local GOARCH.
218
- docker build -t ${IMG} -f Dockerfile ./bin/linux
226
+ $( CONTAINER_RUNTIME ) build -t ${IMG} -f Dockerfile ./bin/linux
219
227
220
228
# SECTION Release
221
229
You can’t perform that action at this time.
0 commit comments