stackabletech / stackablectl

Commandline tool to interact with a Stackable Data Platform
Other
8 stars 1 forks source link

Support installing `latest` release #241

Closed fhennig closed 1 year ago

fhennig commented 1 year ago

Support stackablectl release install latest to install the latest stable release. It does not need to show up when executing stackablectl release list. In case latest is specified stackablectl will

  1. Get the list of releases as usual
  2. Filter to all releases matching [0-9][0-9]\.[0-9][0-9]?
  3. ~Use semver to sort them descending~ => Not semver compatible, sort them with some custom mechanism
  4. Pick the first after sorting
lfrancke commented 1 year ago

I'll put this on the board now but for refinement only, I'll make a go/no-go decision afterwards. I'd like to understand how easy this is to implement first.

sbernauer commented 1 year ago

My estimate would be < 1h in stackablectl. Take list of releases, sort them using semver (?) and use the latest and greatest

lfrancke commented 1 year ago

I'll move it forward. Please ping me if it ends up taking more than one day.

sbernauer commented 1 year ago

I'd actually thought let's screw all the implementation hassle in stackablectl, let's simply define it in the releases.yaml. Added a dev version as well. See linked PR