kubernetes/pkg/client
k8s-merge-robot b3c2c9eb5d Merge pull request #27381 from dims/fix-issue-2967
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
2016-07-07 13:21:58 -07:00
..
cache Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
chaosclient Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
clientset_generated stop update release_1_3 clientset; create release_1_4 2016-07-06 10:48:28 -07:00
leaderelection Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
record Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
restclient Merge pull request #27381 from dims/fix-issue-2967 2016-07-07 13:21:58 -07:00
testdata Added test cases for NewKubeletClient with TLS enabled 2014-12-18 00:57:33 -08:00
testing/core Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
transport Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
typed Merge pull request #26755 from david-mcmahon/fix-headers 2016-06-29 18:46:07 -07:00
unversioned Merge pull request #26977 from joe2far/fix-help-strings 2016-07-07 00:12:22 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00