@@ -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
@@ -274,14 +271,16 @@ test-e2e: SOURCE_MANIFEST := $(STANDARD_E2E_MANIFEST)
274271test-e2e : KIND_CLUSTER_NAME := operator-controller-e2e
275272test-e2e : GO_BUILD_EXTRA_FLAGS := -cover
276273test-e2e : COVERAGE_NAME := e2e
277- test-e2e : run image-registry prometheus e2e e2e-coverage kind-clean # HELP Run e2e test suite on local kind cluster
274+ test-e2e : export MANIFEST := $(STANDARD_RELEASE_MANIFEST )
275+ test-e2e : run-internal image-registry prometheus e2e e2e-coverage kind-clean # HELP Run e2e test suite on local kind cluster
278276
279277.PHONY : test-experimental-e2e
280278test-experimental-e2e : SOURCE_MANIFEST := $(EXPERIMENTAL_E2E_MANIFEST )
281279test-experimental-e2e : KIND_CLUSTER_NAME := operator-controller-e2e
282280test-experimental-e2e : GO_BUILD_EXTRA_FLAGS := -cover
283281test-experimental-e2e : COVERAGE_NAME := experimental-e2e
284- test-experimental-e2e : run image-registry prometheus experimental-e2e e2e e2e-coverage kind-clean # HELP Run experimental e2e test suite on local kind cluster
282+ test-experimental-e2e : export MANIFEST := $(EXPERIMENTAL_RELEASE_MANIFEST )
283+ 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
285284
286285.PHONY : prometheus
287286prometheus : PROMETHEUS_NAMESPACE := olmv1-system
@@ -290,13 +289,15 @@ prometheus: #EXHELP Deploy Prometheus into specified namespace
290289 ./hack/test/install-prometheus.sh $(PROMETHEUS_NAMESPACE ) $(PROMETHEUS_VERSION ) $(KUSTOMIZE ) $(VERSION )
291290
292291.PHONY : test-extension-developer-e2e
292+ test-extension-developer-e2e : SOURCE_MANIFEST := $(STANDARD_E2E_MANIFEST )
293293test-extension-developer-e2e : KIND_CLUSTER_NAME := operator-controller-ext-dev-e2e
294294test-extension-developer-e2e : export INSTALL_DEFAULT_CATALOGS := false
295- test-extension-developer-e2e : run image-registry extension-developer-e2e kind-clean # HELP Run extension-developer e2e on local kind cluster
295+ test-extension-developer-e2e : export MANIFEST := $(STANDARD_RELEASE_MANIFEST )
296+ test-extension-developer-e2e : run-internal image-registry extension-developer-e2e kind-clean # HELP Run extension-developer e2e on local kind cluster
296297
297298.PHONY : run-latest-release
298299run-latest-release :
299- curl -L -s https://github.com/operator-framework/operator-controller/releases/latest/download/$(notdir $(STANDARD_RELEASE_INSTALL ) ) | bash -s
300+ curl -L -s https://github.com/operator-framework/operator-controller/releases/latest/download/$(notdir $(RELEASE_INSTALL ) ) | bash -s
300301
301302.PHONY : pre-upgrade-setup
302303pre-upgrade-setup :
@@ -306,11 +307,27 @@ pre-upgrade-setup:
306307post-upgrade-checks :
307308 go test -count=1 -v ./test/upgrade-e2e/...
308309
310+
311+ 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
312+
309313.PHONY : test-upgrade-e2e
314+ test-upgrade-e2e : SOURCE_MANIFEST := $(STANDARD_MANIFEST )
315+ test-upgrade-e2e : RELEASE_INSTALL := $(STANDARD_RELEASE_INSTALL )
310316test-upgrade-e2e : KIND_CLUSTER_NAME := operator-controller-upgrade-e2e
317+ test-upgrade-e2e : export MANIFEST := $(STANDARD_RELEASE_MANIFEST )
311318test-upgrade-e2e : export TEST_CLUSTER_CATALOG_NAME := test-catalog
312319test-upgrade-e2e : export TEST_CLUSTER_EXTENSION_NAME := test-package
313- 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
320+ test-upgrade-e2e : $(TEST_UPGRADE_E2E_TASKS ) # HELP Run upgrade e2e tests on a local kind cluster
321+
322+ .PHONY : test-upgrade-experimental-e2e
323+ test-upgrade-experimental-e2e : SOURCE_MANIFEST := $(EXPERIMENTAL_MANIFEST )
324+ test-upgrade-experimental-e2e : RELEASE_INSTALL := $(EXPERIMENTAL_RELEASE_INSTALL )
325+ test-upgrade-experimental-e2e : KIND_CLUSTER_NAME := operator-controller-upgrade-experimental-e2e
326+ test-upgrade-experimental-e2e : export MANIFEST := $(EXPERIMENTAL_RELEASE_MANIFEST )
327+ test-upgrade-experimental-e2e : export TEST_CLUSTER_CATALOG_NAME := test-catalog
328+ test-upgrade-experimental-e2e : export TEST_CLUSTER_EXTENSION_NAME := test-package
329+ test-upgrade-experimental-e2e : $(TEST_UPGRADE_E2E_TASKS ) # HELP Run upgrade e2e tests on a local kind cluster
330+
314331
315332.PHONY : e2e-coverage
316333e2e-coverage :
@@ -324,7 +341,6 @@ kind-load: $(KIND) #EXHELP Loads the currently constructed images into the KIND
324341 $(CONTAINER_RUNTIME ) save $(CATD_IMG ) | $(KIND ) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME )
325342
326343.PHONY : kind-deploy
327- kind-deploy : export MANIFEST := $(STANDARD_RELEASE_MANIFEST )
328344kind-deploy : export DEFAULT_CATALOG := $(RELEASE_CATALOGS )
329345kind-deploy : manifests
330346 @echo -e " \n\U1F4D8 Using $( SOURCE_MANIFEST) as source manifest\n"
@@ -395,12 +411,18 @@ go-build-linux: export GOOS=linux
395411go-build-linux : export GOARCH=amd64
396412go-build-linux : $(BINARIES )
397413
414+ .PHONY : run-internal
415+ run-internal : docker-build kind-cluster kind-load kind-deploy wait
416+
398417.PHONY : run
399- run : docker-build kind-cluster kind-load kind-deploy wait # HELP Build the operator-controller then deploy it into a new kind cluster.
418+ run : SOURCE_MANIFEST := $(STANDARD_MANIFEST )
419+ run : export MANIFEST := $(STANDARD_RELEASE_MANIFEST )
420+ run : run-internal # HELP Build operator-controller then deploy it with the standard manifest into a new kind cluster.
400421
401422.PHONY : run-experimental
402423run-experimental : SOURCE_MANIFEST := $(EXPERIMENTAL_MANIFEST )
403- run-experimental : run # HELP Build the operator-controller then deploy it with the experimental manifest into a new kind cluster.
424+ run-experimental : export MANIFEST := $(EXPERIMENTAL_RELEASE_MANIFEST )
425+ run-experimental : run-internal # HELP Build the operator-controller then deploy it with the experimental manifest into a new kind cluster.
404426
405427CATD_NAMESPACE := olmv1-system
406428wait :
0 commit comments