![]() Automatic merge from submit-queue Fix problem specifying fqdn:port in command line When specifying --server in kubectl for example, we end up with failure if you use "localhost:8080" instead of "127.0.0.1:8080". This is because of the way url.Parse works as shown in snippet: https://play.golang.org/p/luD57S6sEz Essentially localhost ends up as the Scheme and NOT as the Host. So we add another check to make sure we prepend the scheme when Host ends up being empty as well. Tested with "kubectl --server localhost:8080 get po" Fixes #2967 |
||
---|---|---|
.. | ||
client_test.go | ||
client.go | ||
config_test.go | ||
config.go | ||
plugin_test.go | ||
plugin.go | ||
request_test.go | ||
request.go | ||
transport.go | ||
url_utils_test.go | ||
url_utils.go | ||
urlbackoff_test.go | ||
urlbackoff.go | ||
versions.go |