Skip to content

Commit

Permalink
chore: Limit new all-namespaces-stable channel to OpenShift 4.8+
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Aug 6, 2021
1 parent 2ae826d commit cb3bde1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bundle/next/eclipse-che-preview-openshift/bundle.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
6 changes: 6 additions & 0 deletions olm/release-olm-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down

0 comments on commit cb3bde1

Please sign in to comment.