Skip to content

Commit 82f63dc

Browse files
Merge pull request #444 from openshift-bot/synchronize-upstream
NO-ISSUE: Synchronize From Upstream Repositories
2 parents 1a9f810 + 0253154 commit 82f63dc

19 files changed

+514
-26
lines changed

Makefile

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ EXPERIMENTAL_MANIFEST := ./manifests/experimental.yaml
9090
EXPERIMENTAL_E2E_MANIFEST := ./manifests/experimental-e2e.yaml
9191
CATALOGS_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)
277274
test-e2e: KIND_CLUSTER_NAME := operator-controller-e2e
278275
test-e2e: GO_BUILD_EXTRA_FLAGS := -cover
279276
test-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
283281
test-experimental-e2e: SOURCE_MANIFEST := $(EXPERIMENTAL_E2E_MANIFEST)
284282
test-experimental-e2e: KIND_CLUSTER_NAME := operator-controller-e2e
285283
test-experimental-e2e: GO_BUILD_EXTRA_FLAGS := -cover
286284
test-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
290289
prometheus: 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)
296296
test-extension-developer-e2e: KIND_CLUSTER_NAME := operator-controller-ext-dev-e2e
297297
test-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
301302
run-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
305306
pre-upgrade-setup:
@@ -309,11 +310,27 @@ pre-upgrade-setup:
309310
post-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)
313319
test-upgrade-e2e: KIND_CLUSTER_NAME := operator-controller-upgrade-e2e
320+
test-upgrade-e2e: export MANIFEST := $(STANDARD_RELEASE_MANIFEST)
314321
test-upgrade-e2e: export TEST_CLUSTER_CATALOG_NAME := test-catalog
315322
test-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
319336
e2e-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)
331347
kind-deploy: export DEFAULT_CATALOG := $(RELEASE_CATALOGS)
332348
kind-deploy: manifests
333349
@echo -e "\n\U1F4D8 Using $(SOURCE_MANIFEST) as source manifest\n"
@@ -401,12 +417,18 @@ go-build-linux: export GOOS=linux
401417
go-build-linux: export GOARCH=amd64
402418
go-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
408429
run-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

411433
CATD_NAMESPACE := olmv1-system
412434
wait:

commitchecker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
expectedMergeBase: 0e0e70605e09910fca8cb701c9e9b436c0f23826
1+
expectedMergeBase: eebdcea5ba8b91c07719a5342c50f9fabd0ebf83
22
upstreamBranch: main
33
upstreamOrg: operator-framework
44
upstreamRepo: operator-controller

hack/test/pre-upgrade-setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ rules:
109109
verbs:
110110
- get
111111
- list
112+
- watch
112113
- create
113114
- update
115+
- patch
114116
- delete
115117
- apiGroups:
116118
- "olm.operatorframework.io"

openshift/catalogd/kustomize/overlays/openshift/catalogs/openshift-certified-operators.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ spec:
88
type: Image
99
image:
1010
pollIntervalMinutes: 10
11-
ref: registry.redhat.io/redhat/certified-operator-index:v4.20
11+
ref: registry.redhat.io/redhat/certified-operator-index:v4.19

openshift/catalogd/kustomize/overlays/openshift/catalogs/openshift-community-operators.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ spec:
88
type: Image
99
image:
1010
pollIntervalMinutes: 10
11-
ref: registry.redhat.io/redhat/community-operator-index:v4.20
11+
ref: registry.redhat.io/redhat/community-operator-index:v4.19

openshift/catalogd/kustomize/overlays/openshift/catalogs/openshift-redhat-marketplace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ spec:
88
type: Image
99
image:
1010
pollIntervalMinutes: 10
11-
ref: registry.redhat.io/redhat/redhat-marketplace-index:v4.20
11+
ref: registry.redhat.io/redhat/redhat-marketplace-index:v4.19

openshift/catalogd/kustomize/overlays/openshift/catalogs/openshift-redhat-operators.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ spec:
88
type: Image
99
image:
1010
pollIntervalMinutes: 10
11-
ref: registry.redhat.io/redhat/redhat-operator-index:v4.20
11+
ref: registry.redhat.io/redhat/redhat-operator-index:v4.19

openshift/catalogd/manifests-experimental/22-clustercatalog-openshift-certified-operators.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ spec:
88
source:
99
image:
1010
pollIntervalMinutes: 10
11-
ref: registry.redhat.io/redhat/certified-operator-index:v4.20
11+
ref: registry.redhat.io/redhat/certified-operator-index:v4.19
1212
type: Image

openshift/catalogd/manifests-experimental/23-clustercatalog-openshift-community-operators.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ spec:
88
source:
99
image:
1010
pollIntervalMinutes: 10
11-
ref: registry.redhat.io/redhat/community-operator-index:v4.20
11+
ref: registry.redhat.io/redhat/community-operator-index:v4.19
1212
type: Image

openshift/catalogd/manifests-experimental/24-clustercatalog-openshift-redhat-marketplace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ spec:
88
source:
99
image:
1010
pollIntervalMinutes: 10
11-
ref: registry.redhat.io/redhat/redhat-marketplace-index:v4.20
11+
ref: registry.redhat.io/redhat/redhat-marketplace-index:v4.19
1212
type: Image

0 commit comments

Comments
 (0)