upbound / up

The @upbound CLI
Apache License 2.0
49 stars 42 forks source link

ctp: Allow version and upgrade channel to be specified in create #543

Closed adamwg closed 1 month ago

adamwg commented 1 month ago

Description of your changes

Add flags to specify the desired Crossplane version and upgrade channel in the up ctp create command. Return an error if a version is specified with a release channel other than None, since the server will accept a spec with a version specified but ignore it in favor of the release channel's current version.

For now, we don't have a programmatic way to fetch the valid release channels so we hard-code the options. Similarly, we don't have an API to fetch supported versions so we can't list them for the user in the CLI.

Fixes #541

I have:

How has this code been tested

Manual testing of the following cases: