Commit d630232b authored by Yu-Ju Hong's avatar Yu-Ju Hong

Merge pull request #10350 from mdevilliers/fix_golang_client_doc

Align example in the client package with the api.
parents f2adea25 ab40fca7
......@@ -21,6 +21,11 @@ and deleting pods, replication controllers, services, and minions.
Most consumers should use the Config object to create a Client:
import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
)
config := &client.Config{
Host: "http://localhost:8080",
Username: "test",
......@@ -30,7 +35,7 @@ Most consumers should use the Config object to create a Client:
if err != nil {
// handle error
}
client.Pods(ns).List()
client.Pods(api.NamespaceDefault).List(labels.Everything(), fields.Everything())
More advanced consumers may wish to provide their own transport via a http.RoundTripper:
......
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