diff --git a/bundle/next/eclipse-che-preview-openshift/bundle.Dockerfile b/bundle/next/eclipse-che-preview-openshift/bundle.Dockerfile index d6ebb8150..151344309 100644 --- a/bundle/next/eclipse-che-preview-openshift/bundle.Dockerfile +++ b/bundle/next/eclipse-che-preview-openshift/bundle.Dockerfile @@ -16,7 +16,7 @@ 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 +# LABEL com.redhat.openshift.versions= # Copy files to locations specified by labels. COPY manifests /manifests/ diff --git a/bundle/next/eclipse-che-preview-openshift/metadata/annotations.yaml b/bundle/next/eclipse-che-preview-openshift/metadata/annotations.yaml index 587ed38d5..8b457f517 100644 --- a/bundle/next/eclipse-che-preview-openshift/metadata/annotations.yaml +++ b/bundle/next/eclipse-che-preview-openshift/metadata/annotations.yaml @@ -10,6 +10,9 @@ annotations: operators.operatorframework.io.metrics.mediatype.v1: metrics+v1 operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3 + # Managing OpenShift versions + # com.redhat.openshift.versions: + # Annotations for testing. operators.operatorframework.io.test.mediatype.v1: scorecard+v1 operators.operatorframework.io.test.config.v1: tests/scorecard/ diff --git a/olm/release-olm-files.sh b/olm/release-olm-files.sh index 76b088cae..03c85a9fe 100755 --- a/olm/release-olm-files.sh +++ b/olm/release-olm-files.sh @@ -173,11 +173,13 @@ do -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}" + # Set specific OpenShift version + sed -e 's/# LABEL com.redhat.openshift.versions=/LABEL com.redhat.openshift.versions="v4.8"/' -i "${BUNDLE_DOCKERFILE}" + sed -e 's/# com.redhat.openshift.versions:/com.redhat.openshift.versions: "v4.8"/' -i "${ANNOTATION_METADATA_YAML}" fi + exit 0 + pushd "${CURRENT_DIR}" || true source ${BASE_DIR}/addDigests.sh -w ${BASE_DIR} \ -t "${RELEASE}" \