From fb00d77c179909617c05eb715965c2faa6d1eda5 Mon Sep 17 00:00:00 2001 From: mehdy Date: Tue, 30 Aug 2016 12:46:52 +0430 Subject: [PATCH] updated document as far as I dug into codes I figured it out that the config exists in `restclient` package --- pkg/client/unversioned/doc.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/client/unversioned/doc.go b/pkg/client/unversioned/doc.go index 41cd0e02524..1ef222cf00c 100644 --- a/pkg/client/unversioned/doc.go +++ b/pkg/client/unversioned/doc.go @@ -23,12 +23,13 @@ Most consumers should use the Config object to create a Client: import ( client "k8s.io/kubernetes/pkg/client/unversioned" + "k8s.io/kubernetes/pkg/client/restclient" "k8s.io/kubernetes/pkg/api" ) [...] - config := &client.Config{ + config := &restclient.Config{ Host: "http://localhost:8080", Username: "test", Password: "password", @@ -44,7 +45,7 @@ Most consumers should use the Config object to create a Client: More advanced consumers may wish to provide their own transport via a http.RoundTripper: - config := &client.Config{ + config := &restclient.Config{ Host: "https://localhost:8080", Transport: oauthclient.Transport(), }