Merge pull request #2343 from erictune/tokens_need_private_comms

Use https when Insecure is selected.
This commit is contained in:
Daniel Smith
2014-11-14 09:51:59 -08:00
4 changed files with 28 additions and 20 deletions

View File

@@ -201,7 +201,7 @@ func main() {
// TODO: eventually apiserver should start on 443 and be secure by default
clientConfig.Host = "http://localhost:8080"
}
if client.IsConfigTransportSecure(clientConfig) {
if client.IsConfigTransportTLS(clientConfig) {
auth, err := kubecfg.LoadAuthInfo(*authConfig, os.Stdin)
if err != nil {
glog.Fatalf("Error loading auth: %v", err)