Commit fb00d77c authored by mehdy's avatar mehdy Committed by GitHub

updated document

as far as I dug into codes I figured it out that the config exists in `restclient` package
parent a74ec3f9
...@@ -23,12 +23,13 @@ Most consumers should use the Config object to create a Client: ...@@ -23,12 +23,13 @@ Most consumers should use the Config object to create a Client:
import ( import (
client "k8s.io/kubernetes/pkg/client/unversioned" client "k8s.io/kubernetes/pkg/client/unversioned"
"k8s.io/kubernetes/pkg/client/restclient"
"k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api"
) )
[...] [...]
config := &client.Config{ config := &restclient.Config{
Host: "http://localhost:8080", Host: "http://localhost:8080",
Username: "test", Username: "test",
Password: "password", Password: "password",
...@@ -44,7 +45,7 @@ Most consumers should use the Config object to create a Client: ...@@ -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: More advanced consumers may wish to provide their own transport via a http.RoundTripper:
config := &client.Config{ config := &restclient.Config{
Host: "https://localhost:8080", Host: "https://localhost:8080",
Transport: oauthclient.Transport(), Transport: oauthclient.Transport(),
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment