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 versionto take an optionalCHART_NAMEwhich returns the deployed version of a given chart. - By default,
bbctl versionshould print thebbctlclient version as well as the deployed version of thebigbangumbrella chart. -
bbctl versionshould also optionally accept an-A/--all-chartscommand that lists out all deployed charts and subcharts alongside their version -
bbctl versionshould support a--checkor--check-for-updatesflag that checks the upstream repository for changes (as the script does) and prints the information to the user. -
bbctl version --check-for-updatesshould support theCHART_NAMEpositional 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