Modify `version` command to check versions for subcharts and optionally check for updates
Convert this script to golang and have it be the "check" functionality command created in #194 (closed).
Acceptance Criteria
- Update
bbctl version
to take an optionalCHART_NAME
which returns the deployed version of a given chart. - By default,
bbctl version
should print thebbctl
client version as well as the deployed version of thebigbang
umbrella chart. -
bbctl version
should also optionally accept an-A
/--all-charts
command that lists out all deployed charts and subcharts alongside their version -
bbctl version
should support a--check
or--check-for-updates
flag that checks the upstream repository for changes (as the script does) and prints the information to the user. -
bbctl version --check-for-updates
should support theCHART_NAME
positional arg to check for updates on that specific chart
Considerations:
Implement the command in such a way that loads strings and constants from configurations so we can choose to add --upstream-url
or --target-version
flags in the future to this and the update
command.
Edited by Daniel Dides