@@ -657,6 +657,33 @@ build-client-image: ## Build the test client image
657
657
.PHONY : build-all-images
658
658
build-all-images : $(BUILD_TARGETS ) /build-operator build-test-images build-compatibility-image # # Build all images (including tests)
659
659
660
+ .PHONY : remove-all-images
661
+ remove-all-images : remove-operator-image remove-test-images # # Remove the Operator image and all test images from the local Podman or Docker
662
+
663
+ .PHONY : remove-operator-image
664
+ remove-operator-image :
665
+ $(DOCKER_CMD ) rmi $(OPERATOR_IMAGE ) || true
666
+ $(DOCKER_CMD ) rmi $(OPERATOR_IMAGE_AMD ) || true
667
+ $(DOCKER_CMD ) rmi $(OPERATOR_IMAGE_ARM ) || true
668
+ $(DOCKER_CMD ) rmi $($(DOCKER_CMD ) images -q -f "dangling=true") || true
669
+ rm $(BUILD_TARGETS ) /build-operator || true
670
+
671
+ .PHONY : remove-test-images
672
+ remove-test-images :
673
+ $(DOCKER_CMD ) rmi $(TEST_APPLICATION_IMAGE ) || true
674
+ $(DOCKER_CMD ) rmi $(TEST_APPLICATION_IMAGE_CLIENT ) || true
675
+ $(DOCKER_CMD ) rmi $(TEST_APPLICATION_IMAGE_HELIDON ) || true
676
+ $(DOCKER_CMD ) rmi $(TEST_APPLICATION_IMAGE_HELIDON_2 ) || true
677
+ $(DOCKER_CMD ) rmi $(TEST_APPLICATION_IMAGE_HELIDON_3 ) || true
678
+ $(DOCKER_CMD ) rmi $(TEST_APPLICATION_IMAGE_SPRING ) || true
679
+ $(DOCKER_CMD ) rmi $(TEST_APPLICATION_IMAGE_SPRING_2 ) || true
680
+ $(DOCKER_CMD ) rmi $(TEST_APPLICATION_IMAGE_SPRING_FAT ) || true
681
+ $(DOCKER_CMD ) rmi $(TEST_APPLICATION_IMAGE_SPRING_FAT_2 ) || true
682
+ $(DOCKER_CMD ) rmi $(TEST_APPLICATION_IMAGE_SPRING_CNBP ) || true
683
+ $(DOCKER_CMD ) rmi $(TEST_APPLICATION_IMAGE_SPRING_CNBP_2 ) || true
684
+ $(DOCKER_CMD ) rmi $(TEST_COMPATIBILITY_IMAGE ) || true
685
+ $(DOCKER_CMD ) rmi $($(DOCKER_CMD ) images -q -f "dangling=true") || true
686
+
660
687
# ----------------------------------------------------------------------------------------------------------------------
661
688
# Ensure Operator SDK is at the correct version
662
689
# ----------------------------------------------------------------------------------------------------------------------
@@ -1253,7 +1280,7 @@ e2e-local-test: export MVN_VERSION := $(MVN_VERSION)
1253
1280
e2e-local-test : export OPERATOR_IMAGE := $(OPERATOR_IMAGE )
1254
1281
e2e-local-test : export COHERENCE_IMAGE := $(COHERENCE_IMAGE )
1255
1282
e2e-local-test : export SKIP_SPRING_CNBP := $(SKIP_SPRING_CNBP )
1256
- e2e-local-test : $( BUILD_TARGETS ) /build-operator undeploy reset-namespace create-ssl-secrets gotestsum install-crds ensure-pull-secret # # Run the Operator end-to-end 'local' functional tests using a local Operator instance
1283
+ e2e-local-test : undeploy reset-namespace create-ssl-secrets gotestsum install-crds ensure-pull-secret # # Run the Operator end-to-end 'local' functional tests using a local Operator instance
1257
1284
$(GOTESTSUM ) --format standard-verbose --junitfile $(TEST_LOGS_DIR ) /operator-e2e-local-test.xml \
1258
1285
-- $(GO_TEST_FLAGS_E2E ) ./test/e2e/local/...
1259
1286
@@ -1273,7 +1300,7 @@ e2e-test: prepare-e2e-test ## Run the Operator end-to-end 'remote' functional te
1273
1300
; exit $$ rc
1274
1301
1275
1302
.PHONY : prepare-e2e-test
1276
- prepare-e2e-test : $( BUILD_TARGETS ) /build-operator reset-namespace create-ssl-secrets deploy-and-wait
1303
+ prepare-e2e-test : reset-namespace create-ssl-secrets deploy-and-wait
1277
1304
1278
1305
.PHONY : run-e2e-test
1279
1306
run-e2e-test : export CGO_ENABLED = 0
@@ -1364,7 +1391,7 @@ e2e-client-test: export VERSION := $(VERSION)
1364
1391
e2e-client-test : export MVN_VERSION := $(MVN_VERSION )
1365
1392
e2e-client-test : export OPERATOR_IMAGE := $(OPERATOR_IMAGE )
1366
1393
e2e-client-test : export COHERENCE_IMAGE := $(COHERENCE_IMAGE )
1367
- e2e-client-test : build-operator-images build- client-image reset-namespace create-ssl-secrets gotestsum undeploy # # Run the end-to-end Coherence client tests using a local Operator deployment
1394
+ e2e-client-test : build-client-image reset-namespace create-ssl-secrets gotestsum undeploy # # Run the end-to-end Coherence client tests using a local Operator deployment
1368
1395
$(GOTESTSUM ) --format standard-verbose --junitfile $(TEST_LOGS_DIR ) /operator-e2e-client-test.xml \
1369
1396
-- $(GO_TEST_FLAGS_E2E ) ./test/e2e/clients/...
1370
1397
@@ -1397,7 +1424,7 @@ e2e-helm-test: $(BUILD_PROPS) $(BUILD_HELM)/coherence-operator-$(VERSION).tgz re
1397
1424
# ----------------------------------------------------------------------------------------------------------------------
1398
1425
.PHONY : e2e-prometheus-test
1399
1426
e2e-prometheus-test : export MF = $(MAKEFLAGS )
1400
- e2e-prometheus-test : reset-namespace install-prometheus $( BUILD_TARGETS ) /build-operator create-ssl-secrets deploy-and-wait # # Run the Operator metrics/Prometheus end-to-end functional tests
1427
+ e2e-prometheus-test : reset-namespace install-prometheus create-ssl-secrets deploy-and-wait # # Run the Operator metrics/Prometheus end-to-end functional tests
1401
1428
$(MAKE ) run-prometheus-test $$ {MF} \
1402
1429
; rc=$$? \
1403
1430
; $(MAKE ) uninstall-prometheus $$ {MF} \
0 commit comments