Check for newer version available (#47)

* Add helm version requirement notes

* Check for newer version and offer upgrade

* fix lint
This commit is contained in:
Andrey Pokhilko
2022-10-26 12:35:07 +01:00
committed by GitHub
parent b0067e31ba
commit de0024cd03
8 changed files with 96 additions and 19 deletions

View File

@@ -25,6 +25,12 @@ type DataLayer struct {
Helm string
Kubectl string
Scanners []Scanner
VersionInfo *VersionInfo
}
type VersionInfo struct {
CurVer string
LatestVer string
}
func (d *DataLayer) runCommand(cmd ...string) (string, error) {