diff --git a/pkg/version/util.go b/pkg/version/util.go index 0e4b848e..848bbdd3 100644 --- a/pkg/version/util.go +++ b/pkg/version/util.go @@ -6,9 +6,9 @@ import ( var ( validCurrentVersions = map[string]bool{ - "1.9.0": true, "1.10.0": true, + "1.9.0": true, "1.10.0": true, "1.11.0": true, } - validDesiredVersion = GetVersion() + validDesiredVersion = strings.Split(GetVersion(), "-")[0] ) // IsCurrentVersionValid verifies if the current version is valid or not