mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
Merge pull request #14893 from caesarxuchao/temp-fix-negotiate-version
temporarily disable warning message in NegotiateVersion
This commit is contained in:
commit
00ab055fa1
@ -228,9 +228,11 @@ func NegotiateVersion(client *Client, c *Config, version string, clientRegistere
|
|||||||
if serverVersions.Has(clientVersion) {
|
if serverVersions.Has(clientVersion) {
|
||||||
// Version was not explicitly requested in command config (--api-version).
|
// Version was not explicitly requested in command config (--api-version).
|
||||||
// Ok to fall back to a supported version with a warning.
|
// Ok to fall back to a supported version with a warning.
|
||||||
if len(version) != 0 {
|
// TODO: caesarxuchao: enable the warning message when we have
|
||||||
glog.Warningf("Server does not support API version '%s'. Falling back to '%s'.", version, clientVersion)
|
// proper fix. Please refer to issue #14895.
|
||||||
}
|
// if len(version) != 0 {
|
||||||
|
// glog.Warningf("Server does not support API version '%s'. Falling back to '%s'.", version, clientVersion)
|
||||||
|
// }
|
||||||
return clientVersion, nil
|
return clientVersion, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user