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:
parent
26e2979d20
commit
fef1c04eee
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user