operator-framework / kubectl-operator

Manage Kubernetes Operators from the command line
https://operatorframework.io/
Apache License 2.0
128 stars 37 forks source link

Use package channel entries to lookup version #76

Closed joelanford closed 1 year ago

joelanford commented 1 year ago

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[bot] commented 1 year ago

[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

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/operator-framework/kubectl-operator/blob/main/OWNERS)~~ [joelanford] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment