@@ -90,9 +90,6 @@ EXPERIMENTAL_MANIFEST := ./manifests/experimental.yaml
9090EXPERIMENTAL_E2E_MANIFEST := ./manifests/experimental-e2e.yaml
9191CATALOGS_MANIFEST := ./manifests/default-catalogs.yaml
9292
93- # Manifest used by kind-deploy, which may be overridden by other targets
94- SOURCE_MANIFEST := $(STANDARD_MANIFEST )
95-
9693# Disable -j flag for make
9794.NOTPARALLEL :
9895
@@ -277,14 +274,16 @@ test-e2e: SOURCE_MANIFEST := $(STANDARD_E2E_MANIFEST)
277274test-e2e : KIND_CLUSTER_NAME := operator-controller-e2e
278275test-e2e : GO_BUILD_EXTRA_FLAGS := -cover
279276test-e2e : COVERAGE_NAME := e2e
280- test-e2e : run image-registry prometheus e2e e2e-coverage kind-clean # HELP Run e2e test suite on local kind cluster
277+ test-e2e : export MANIFEST := $(STANDARD_RELEASE_MANIFEST )
278+ test-e2e : run-internal image-registry prometheus e2e e2e-coverage kind-clean # HELP Run e2e test suite on local kind cluster
281279
282280.PHONY : test-experimental-e2e
283281test-experimental-e2e : SOURCE_MANIFEST := $(EXPERIMENTAL_E2E_MANIFEST )
284282test-experimental-e2e : KIND_CLUSTER_NAME := operator-controller-e2e
285283test-experimental-e2e : GO_BUILD_EXTRA_FLAGS := -cover
286284test-experimental-e2e : COVERAGE_NAME := experimental-e2e
287- test-experimental-e2e : run image-registry prometheus experimental-e2e e2e e2e-coverage kind-clean # HELP Run experimental e2e test suite on local kind cluster
285+ test-experimental-e2e : export MANIFEST := $(EXPERIMENTAL_RELEASE_MANIFEST )
286+ test-experimental-e2e : run-internal image-registry prometheus experimental-e2e e2e e2e-coverage kind-clean # HELP Run experimental e2e test suite on local kind cluster
288287
289288.PHONY : prometheus
290289prometheus : PROMETHEUS_NAMESPACE := olmv1-system
@@ -293,13 +292,15 @@ prometheus: #EXHELP Deploy Prometheus into specified namespace
293292 ./hack/test/install-prometheus.sh $(PROMETHEUS_NAMESPACE ) $(PROMETHEUS_VERSION ) $(KUSTOMIZE ) $(VERSION )
294293
295294.PHONY : test-extension-developer-e2e
295+ test-extension-developer-e2e : SOURCE_MANIFEST := $(STANDARD_E2E_MANIFEST )
296296test-extension-developer-e2e : KIND_CLUSTER_NAME := operator-controller-ext-dev-e2e
297297test-extension-developer-e2e : export INSTALL_DEFAULT_CATALOGS := false
298- test-extension-developer-e2e : run image-registry extension-developer-e2e kind-clean # HELP Run extension-developer e2e on local kind cluster
298+ test-extension-developer-e2e : export MANIFEST := $(STANDARD_RELEASE_MANIFEST )
299+ test-extension-developer-e2e : run-internal image-registry extension-developer-e2e kind-clean # HELP Run extension-developer e2e on local kind cluster
299300
300301.PHONY : run-latest-release
301302run-latest-release :
302- curl -L -s https://github.com/operator-framework/operator-controller/releases/latest/download/$(notdir $(STANDARD_RELEASE_INSTALL ) ) | bash -s
303+ curl -L -s https://github.com/operator-framework/operator-controller/releases/latest/download/$(notdir $(RELEASE_INSTALL ) ) | bash -s
303304
304305.PHONY : pre-upgrade-setup
305306pre-upgrade-setup :
@@ -309,11 +310,27 @@ pre-upgrade-setup:
309310post-upgrade-checks :
310311 go test -count=1 -v ./test/upgrade-e2e/...
311312
313+
314+ TEST_UPGRADE_E2E_TASKS := kind-cluster run-latest-release image-registry pre-upgrade-setup docker-build kind-load kind-deploy post-upgrade-checks kind-clean
315+
312316.PHONY : test-upgrade-e2e
317+ test-upgrade-e2e : SOURCE_MANIFEST := $(STANDARD_MANIFEST )
318+ test-upgrade-e2e : RELEASE_INSTALL := $(STANDARD_RELEASE_INSTALL )
313319test-upgrade-e2e : KIND_CLUSTER_NAME := operator-controller-upgrade-e2e
320+ test-upgrade-e2e : export MANIFEST := $(STANDARD_RELEASE_MANIFEST )
314321test-upgrade-e2e : export TEST_CLUSTER_CATALOG_NAME := test-catalog
315322test-upgrade-e2e : export TEST_CLUSTER_EXTENSION_NAME := test-package
316- test-upgrade-e2e : kind-cluster run-latest-release image-registry pre-upgrade-setup docker-build kind-load kind-deploy post-upgrade-checks kind-clean # HELP Run upgrade e2e tests on a local kind cluster
323+ test-upgrade-e2e : $(TEST_UPGRADE_E2E_TASKS ) # HELP Run upgrade e2e tests on a local kind cluster
324+
325+ .PHONY : test-upgrade-experimental-e2e
326+ test-upgrade-experimental-e2e : SOURCE_MANIFEST := $(EXPERIMENTAL_MANIFEST )
327+ test-upgrade-experimental-e2e : RELEASE_INSTALL := $(EXPERIMENTAL_RELEASE_INSTALL )
328+ test-upgrade-experimental-e2e : KIND_CLUSTER_NAME := operator-controller-upgrade-experimental-e2e
329+ test-upgrade-experimental-e2e : export MANIFEST := $(EXPERIMENTAL_RELEASE_MANIFEST )
330+ test-upgrade-experimental-e2e : export TEST_CLUSTER_CATALOG_NAME := test-catalog
331+ test-upgrade-experimental-e2e : export TEST_CLUSTER_EXTENSION_NAME := test-package
332+ test-upgrade-experimental-e2e : $(TEST_UPGRADE_E2E_TASKS ) # HELP Run upgrade e2e tests on a local kind cluster
333+
317334
318335.PHONY : e2e-coverage
319336e2e-coverage :
@@ -327,7 +344,6 @@ kind-load: $(KIND) #EXHELP Loads the currently constructed images into the KIND
327344 $(CONTAINER_RUNTIME ) save $(CATD_IMG ) | $(KIND ) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME )
328345
329346.PHONY : kind-deploy
330- kind-deploy : export MANIFEST := $(STANDARD_RELEASE_MANIFEST )
331347kind-deploy : export DEFAULT_CATALOG := $(RELEASE_CATALOGS )
332348kind-deploy : manifests
333349 @echo -e " \n\U1F4D8 Using $( SOURCE_MANIFEST) as source manifest\n"
@@ -401,12 +417,18 @@ go-build-linux: export GOOS=linux
401417go-build-linux : export GOARCH=amd64
402418go-build-linux : $(BINARIES )
403419
420+ .PHONY : run-internal
421+ run-internal : docker-build kind-cluster kind-load kind-deploy wait
422+
404423.PHONY : run
405- run : docker-build kind-cluster kind-load kind-deploy wait # HELP Build the operator-controller then deploy it into a new kind cluster.
424+ run : SOURCE_MANIFEST := $(STANDARD_MANIFEST )
425+ run : export MANIFEST := $(STANDARD_RELEASE_MANIFEST )
426+ run : run-internal # HELP Build operator-controller then deploy it with the standard manifest into a new kind cluster.
406427
407428.PHONY : run-experimental
408429run-experimental : SOURCE_MANIFEST := $(EXPERIMENTAL_MANIFEST )
409- run-experimental : run # HELP Build the operator-controller then deploy it with the experimental manifest into a new kind cluster.
430+ run-experimental : export MANIFEST := $(EXPERIMENTAL_RELEASE_MANIFEST )
431+ run-experimental : run-internal # HELP Build the operator-controller then deploy it with the experimental manifest into a new kind cluster.
410432
411433CATD_NAMESPACE := olmv1-system
412434wait :
0 commit comments