Closed SqiSch closed 6 years ago
I Found the reason. the version returned by version.Minor is 9+. When doing a strconv.Atoi(version.Minor)the version is 0 and then uses the old version.
i tried to add a branch, but i´m not able to create branches. One possible fix is to regex the version number:
....
oldVersion := false
major, _ := strconv.Atoi(version.Major)
re := regexp.MustCompile("[0-9]+")
minor, _ := strconv.Atoi(re.FindAllString(version.Minor, -1)[0])
if major < 2 && minor < 8 {
oldVersion = true
}
...
it´s working then with current gcp kubernetes clusters.
He Sergey, i always get the message:
We running kubernetes 1.9.6 on google container engine.
Our job manifest f.e.:
a describe of a succeeded pod
do you have any clues why the problem here occurs?
Best, Marcel