1
0
mirror of https://github.com/rancher/rke.git synced 2025-04-29 03:53:30 +00:00

use go-version for comparison

This commit is contained in:
kinarashah 2019-08-21 17:01:55 -07:00 committed by Alena Prokharchyk
parent 26e2979d20
commit fef1c04eee

View File

@ -80,7 +80,7 @@ func initK8sRKESystemImages() {
continue continue
} }
} }
if curr, ok := maxVersionForMajorK8sVersion[majorVersion]; !ok || k8sVersion > curr { if curr, ok := maxVersionForMajorK8sVersion[majorVersion]; !ok || mVersion.Compare(k8sVersion, curr, ">") {
maxVersionForMajorK8sVersion[majorVersion] = k8sVersion maxVersionForMajorK8sVersion[majorVersion] = k8sVersion
} }
} }