diff --git a/bundle/next/eclipse-che-preview-openshift/bundle.Dockerfile b/bundle/next/eclipse-che-preview-openshift/bundle.Dockerfile index 8cd60182b..d6ebb8150 100644 --- a/bundle/next/eclipse-che-preview-openshift/bundle.Dockerfile +++ b/bundle/next/eclipse-che-preview-openshift/bundle.Dockerfile @@ -15,6 +15,9 @@ LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3 LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1 LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/ +# Managing OpenShift versions +# LABEL com.redhat.openshift.versions + # Copy files to locations specified by labels. COPY manifests /manifests/ COPY metadata /metadata/ diff --git a/olm/release-olm-files.sh b/olm/release-olm-files.sh index ae0413150..76b088cae 100755 --- a/olm/release-olm-files.sh +++ b/olm/release-olm-files.sh @@ -172,6 +172,12 @@ do -e 's/LABEL operators.operatorframework.io.bundle.channel.default.v1=next/LABEL operators.operatorframework.io.bundle.channel.default.v1='$CHANNEL'/' \ -i "${BUNDLE_DOCKERFILE}" + if [[ ${CHANNEL} == "stable-all-namespaces" ]]; then + sed \ + -e 's/# LABEL com.redhat.openshift.versions/LABEL com.redhat.openshift.versions="v4.8"/' \ + -i "${BUNDLE_DOCKERFILE}" + fi + pushd "${CURRENT_DIR}" || true source ${BASE_DIR}/addDigests.sh -w ${BASE_DIR} \ -t "${RELEASE}" \