Commit a95ec884 authored by Ilya Dmitrichenko's avatar Ilya Dmitrichenko

Update basic example in client docs

parent 8d90427c
...@@ -24,8 +24,6 @@ Most consumers should use the Config object to create a Client: ...@@ -24,8 +24,6 @@ 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/api" "k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/fields"
"k8s.io/kubernetes/pkg/labels"
) )
[...] [...]
...@@ -39,7 +37,7 @@ Most consumers should use the Config object to create a Client: ...@@ -39,7 +37,7 @@ Most consumers should use the Config object to create a Client:
if err != nil { if err != nil {
// handle error // handle error
} }
pods, err := client.Pods(api.NamespaceDefault).List(labels.Everything(), fields.Everything()) pods, err := client.Pods(api.NamespaceDefault).List(api.ListOptions{})
if err != nil { if err != nil {
// handle error // handle error
} }
......
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