mirror of
https://github.com/rancher/rke.git
synced 2025-04-27 19:25:44 +00:00
use go-version for comparison
This commit is contained in:
parent
26e2979d20
commit
fef1c04eee
@ -80,7 +80,7 @@ func initK8sRKESystemImages() {
|
||||
continue
|
||||
}
|
||||
}
|
||||
if curr, ok := maxVersionForMajorK8sVersion[majorVersion]; !ok || k8sVersion > curr {
|
||||
if curr, ok := maxVersionForMajorK8sVersion[majorVersion]; !ok || mVersion.Compare(k8sVersion, curr, ">") {
|
||||
maxVersionForMajorK8sVersion[majorVersion] = k8sVersion
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user