diff --git a/pkg/client/unversioned/doc.go b/pkg/client/unversioned/doc.go index 1ef222cf00c..4c5a986a0f8 100644 --- a/pkg/client/unversioned/doc.go +++ b/pkg/client/unversioned/doc.go @@ -34,11 +34,11 @@ Most consumers should use the Config object to create a Client: Username: "test", Password: "password", } - client, err := client.New(config) + c, err := client.New(config) if err != nil { // handle error } - pods, err := client.Pods(api.NamespaceDefault).List(api.ListOptions{}) + pods, err := c.Pods(api.NamespaceDefault).List(api.ListOptions{}) if err != nil { // handle error } @@ -49,7 +49,7 @@ More advanced consumers may wish to provide their own transport via a http.Round Host: "https://localhost:8080", Transport: oauthclient.Transport(), } - client, err := client.New(config) + c, err := client.New(config) The RESTClient type implements the Kubernetes API conventions (see `docs/devel/api-conventions.md`) for a given API path and is intended for use by consumers implementing their own Kubernetes