Skip to content

fix(openshift): handle unquoted short max versions#2270

Merged
openshift-merge-robot merged 1 commit into
operator-framework:masterfrom
njhale:fix/block-openshift-upgrades
Jul 20, 2021
Merged

fix(openshift): handle unquoted short max versions#2270
openshift-merge-robot merged 1 commit into
operator-framework:masterfrom
njhale:fix/block-openshift-upgrades

Conversation

@njhale
Copy link
Copy Markdown
Member

@njhale njhale commented Jul 20, 2021

Description

Add special handling for version shorthand commonly used in pipelines for Red Hat operator catalogs.

Allows unquoted short versions to be used when specifying an operator's OpenShift compatibility; e.g. olm.maxOpenShiftVersion: 4.8. Without this, OLM will only recognize quoted, fully qualified, maxOpenShiftVersion properties; e.g. olm.maxOpenShiftVersion: "4.8.0".

Motivation

Under my direction, Red Hat catalog pipeline maintainers have already notified bundle authors of, built automation around, and updated catalog content using this shorthand. Given this, supporting the shorthand will save these clients the effort and confusion required to switch to a fully qualified version.

@openshift-ci openshift-ci Bot requested review from anik120 and timflannagan July 20, 2021 02:01
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 20, 2021
@njhale njhale force-pushed the fix/block-openshift-upgrades branch 2 times, most recently from 10ed254 to 4b2f0f7 Compare July 20, 2021 02:05
Add special handling for version shorthand commonly used in pipelines
for Red Hat operator catalogs. Allows unquoted short versions to be used
when specifying an operator's compatibility with versions of OpenShift;
e.g. "olm.maxOpenShiftVersion": 4.8. Without this, OLM will only
recognize quoted maxOpenShiftVersion properties; e.g. "olm.maxOpenShiftVersion": "4.8".

Signed-off-by: Nick Hale <njohnhale@gmail.com>
@njhale njhale force-pushed the fix/block-openshift-upgrades branch from 4b2f0f7 to 1ebebdb Compare July 20, 2021 02:08
Copy link
Copy Markdown
Member

@dinhxuanvu dinhxuanvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 20, 2021
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Jul 20, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dinhxuanvu, njhale

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 9eaf62f into operator-framework:master Jul 20, 2021
njhale pushed a commit to njhale/operator-lifecycle-manager that referenced this pull request Jul 20, 2021
…shift-upgrades

fix(openshift): handle unquoted short max versions

Signed-off-by: Nick Hale <njohnhale@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants