upbound / up

The @upbound CLI
Apache License 2.0
52 stars 41 forks source link

feat(cli): version to subcommand and client/server side versions #437

Closed haarchri closed 6 months ago

haarchri commented 7 months ago

Description of your changes

This PR introduces a feature that, when using the up version command(now subcommand), displays the version of Crossplane or Universal Crossplane and, if applicable, the version of the Spaces controller.

Fixes #24

I have:

How has this code been tested

cluster without crossplane/universal-crossplane:

up version
Client Version: v0.25.0-rc.0.33.g625bf51.dirty

cluster with universal-crossplane:

up version
Client Version: v0.25.0-rc.0.33.g625bf51.dirty
Server Version: v1.15.0-up.1

cluster with universal-crossplane:

up version
Client Version: v0.25.0-rc.0.33.g625bf51.dirty
Server Version: v1.15.0

cluster with universal-crossplane and spaces:

up version                                                                               
Client Version: v0.25.0-rc.0.33.g625bf51.dirty
Server Version: v1.14.6-up.1
Spaces Controller Version: 1.2.3

with flag client:

up version --client=true
Client Version: v0.25.0-rc.0.34.gd9fcb53.dirty