diff --git a/olm/ci.yaml b/olm/ci.yaml index e00809910..7e68676ba 100644 --- a/olm/ci.yaml +++ b/olm/ci.yaml @@ -11,15 +11,10 @@ # --- -# Eclipse Che uses \`replaces-mode\` instead of \`semver-mode\` because we produce next versioned 9.9.9.* -# which would be seen as newer than all the stable 7.yy.z releases by semver rules, preventing anyone from updating -# from a next to a 7.yy.z release. # See also https://operator-framework.github.io/community-operators/operator-ci-yaml/#operator-versioning - -# NOTE: if you update this file, you need to submit a PR against these two files: -# https://github.com/operator-framework/community-operators/blob/master/community-operators/eclipse-che/ci.yaml -# https://github.com/operator-framework/community-operators/blob/master/upstream-community-operators/eclipse-che/ci.yaml -updateGraph: replaces-mode +# NOTE: if you update this file, you need to submit a PR against this file: +# https://github.com/redhat-openshift-ecosystem/community-operators-prod/blob/main/operators/eclipse-che/ci.yaml +updateGraph: semver-mode addReviewers: true reviewers: - che-incubator-bot diff --git a/olm/prepare-community-operators-update.sh b/olm/prepare-community-operators-update.sh index 3714994b9..c6e2ec03d 100755 --- a/olm/prepare-community-operators-update.sh +++ b/olm/prepare-community-operators-update.sh @@ -120,7 +120,6 @@ do echo sed \ -e "/^ replaces: ${packageName}.v.*/d" \ - -e "/^ version: ${LAST_PACKAGE_VERSION}/i\ \ replaces: eclipse-che.v${PREVIOUS_PACKAGE_VERSION}" \ -e "s/${packageName}/eclipse-che/" \ "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/manifests/che-operator.clusterserviceversion.yaml" \ > "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/eclipse-che.v${LAST_PACKAGE_VERSION}.clusterserviceversion.yaml" @@ -128,8 +127,8 @@ do echo " - Update the CRD files" cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/manifests/org_v1_che_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/checlusters.org.eclipse.che.crd.yaml" cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml" - cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/manifests//org.eclipse.che_checlusterbackups_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/org.eclipse.che_checlusterbackups_crd.yaml" - cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/manifests//org.eclipse.che_checlusterrestores_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/org.eclipse.che_checlusterrestores_crd.yaml" + cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/manifests/org.eclipse.che_checlusterbackups_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/org.eclipse.che_checlusterbackups_crd.yaml" + cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/manifests/org.eclipse.che_checlusterrestores_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/org.eclipse.che_checlusterrestores_crd.yaml" echo cp ${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/metadata/* "${folderToUpdate}/${LAST_PACKAGE_VERSION}/metadata" @@ -139,9 +138,6 @@ do -e '/operators.operatorframework.io.test.mediatype.v1: scorecard+v1/d' \ -i "${folderToUpdate}/${LAST_PACKAGE_VERSION}/metadata/annotations.yaml" - # NOTE: if you update this file, you need to submit a PR against these two files: - # https://github.com/redhat-openshift-ecosystem/community-operators-prod/blob/main/operators/eclipse-che/ci.yaml - # https://github.com/k8s-operatorhub/community-operators/blob/main/operators/eclipse-che/ci.yaml echo " - Replace ci.yaml file" cp ${BASE_DIR}/ci.yaml ${folderToUpdate}/ci.yaml diff --git a/olm/release-olm-files.sh b/olm/release-olm-files.sh index 8ea471204..a14525433 100755 --- a/olm/release-olm-files.sh +++ b/olm/release-olm-files.sh @@ -97,7 +97,6 @@ sed \ -e 's|"pluginRegistryImage": *"quay.io/eclipse/che-plugin-registry:next"|"pluginRegistryImage": ""|' \ -e "/^ replaces: ${packageName}.v.*/d" \ -e "s/^ version: ${lastPackageNextVersion}/ version: ${RELEASE}/" \ --e "/^ version: ${RELEASE}/i\ \ replaces: ${packageName}.v${LAST_RELEASE_VERSION}" \ -e "s/: next/: ${RELEASE}/" \ -e "s/:next/:${RELEASE}/" \ -e "s/${lastPackageNextVersion}/${RELEASE}/" \