From dfdbaec577b1c4332af886955e41c83ab146d591 Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Wed, 30 Sep 2015 21:18:50 -0700 Subject: [PATCH] temporarily disable warning message in NegotiateVersion --- pkg/client/unversioned/helper.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/client/unversioned/helper.go b/pkg/client/unversioned/helper.go index a4d114787b..bd08520558 100644 --- a/pkg/client/unversioned/helper.go +++ b/pkg/client/unversioned/helper.go @@ -228,9 +228,11 @@ func NegotiateVersion(client *Client, c *Config, version string, clientRegistere if serverVersions.Has(clientVersion) { // Version was not explicitly requested in command config (--api-version). // Ok to fall back to a supported version with a warning. - if len(version) != 0 { - glog.Warningf("Server does not support API version '%s'. Falling back to '%s'.", version, clientVersion) - } + // TODO: caesarxuchao: enable the warning message when we have + // 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 } }