mirror of https://github.com/k3s-io/k3s
Merge pull request #36678 from ymqytw/fix_bug_in_patch
Automatic merge from submit-queue fix bug when compare version Fix a small bug when compare version in `patch` which is introduced by my PR #35647 today. This blocks #36672. cc: @janetkuopull/6/head
commit
68a7c2c6b5
|
@ -1442,7 +1442,7 @@ func GetServerSupportedSMPatchVersion(discoveryClient discovery.DiscoveryInterfa
|
|||
if serverGitVersion >= string(SMPatchVersion_1_5) {
|
||||
return SMPatchVersion_1_5, nil
|
||||
}
|
||||
if serverGitVersion >= string(SMPatchVersion_1_5) {
|
||||
if serverGitVersion >= string(SMPatchVersion_1_0) {
|
||||
return SMPatchVersion_1_0, nil
|
||||
}
|
||||
return Unknown, fmt.Errorf("The version is too old: %v\n", serverVersion)
|
||||
|
|
Loading…
Reference in New Issue