mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-02 14:23:54 +00:00
Remove long/golang version information making short the default
This commit is contained in:
@@ -1676,7 +1676,7 @@ metadata:
|
||||
// we expect following values for: Major -> digit, Minor -> numeric followed by an optional '+', GitCommit -> alphanumeric
|
||||
requiredItems := []string{"Client Version: ", "Server Version: "}
|
||||
for _, item := range requiredItems {
|
||||
if matched, _ := regexp.MatchString(item+`version.Info\{Major:"\d", Minor:"\d+\+?", GitVersion:"v\d\.\d+\.[\d\w\-\.\+]+", GitCommit:"[0-9a-f]+"`, versionString); !matched {
|
||||
if matched, _ := regexp.MatchString(item+`v\d\.\d+\.[\d\w\-\.\+]+`, versionString); !matched {
|
||||
framework.Failf("Item %s value is not valid in %s\n", item, versionString)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user