Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
00ab055f
Commit
00ab055f
authored
Sep 30, 2015
by
Nikhil Jindal
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14893 from caesarxuchao/temp-fix-negotiate-version
temporarily disable warning message in NegotiateVersion
parents
698441ca
dfdbaec5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
helper.go
pkg/client/unversioned/helper.go
+5
-3
No files found.
pkg/client/unversioned/helper.go
View file @
00ab055f
...
@@ -228,9 +228,11 @@ func NegotiateVersion(client *Client, c *Config, version string, clientRegistere
...
@@ -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
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment