Skip to content

Commit

Permalink
chore: setting specific OpenShift version in annotations for stable-a…
Browse files Browse the repository at this point in the history
…ll-namespaces bunle

Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Aug 9, 2021
1 parent 95471df commit eab1d21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/
8 changes: 5 additions & 3 deletions olm/release-olm-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down

0 comments on commit eab1d21

Please sign in to comment.