mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
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: @janetkuo
This commit is contained in:
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
Block a user