Skip to content

Use package channel entries to lookup version#76

Merged
openshift-merge-robot merged 1 commit intooperator-framework:mainfrom
joelanford:version-lookup
Jan 18, 2023
Merged

Use package channel entries to lookup version#76
openshift-merge-robot merged 1 commit intooperator-framework:mainfrom
joelanford:version-lookup

Conversation

@joelanford
Copy link
Copy Markdown
Member

A listing of all channel entries was added in a recent version of the packagemanifests API. If the length of the list is 0, that means we're on an older version of the API, so we'll fall back to the previous behavior of just guessing a CSV name.

With the updated packagemanifests API, we can iterate the list of entries and find the startingCSV, and error out if the specified version is not found.

Closes #2

Signed-off-by: Joe Lanford joe.lanford@gmail.com

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Nov 21, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: joelanford

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-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 21, 2022
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 21, 2022
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 21, 2022
@joelanford joelanford force-pushed the version-lookup branch 5 times, most recently from d418d84 to 9a2a556 Compare November 22, 2022 15:48
A listing of all channel entries was added in a recent version of the packagemanifests API.
If the length of the list is 0, that means we're on an older version of the API, so we'll fall
back to the previous behavior of just guessing a CSV name.

With the updated packagemanifests API, we can iterate the list of entries and find the
startingCSV, and error out if the specified version is not found.

Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
@joelanford joelanford added the lgtm Indicates that a PR is ready to be merged. label Jan 18, 2023
@openshift-merge-robot openshift-merge-robot merged commit 3df32d1 into operator-framework:main Jan 18, 2023
@joelanford joelanford deleted the version-lookup branch November 1, 2024 18:18
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.

Installing operators at a particular version requires the full CSV name

2 participants