Switch to versioned ListOptions in client.

This commit is contained in:
Wojciech Tyczynski
2015-12-10 10:39:03 +01:00
parent 4ef062c22f
commit 960808bf08
167 changed files with 602 additions and 671 deletions

View File

@@ -26,7 +26,6 @@ import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/testapi"
"k8s.io/kubernetes/pkg/api/unversioned"
client "k8s.io/kubernetes/pkg/client/unversioned"
"k8s.io/kubernetes/pkg/util"
"k8s.io/kubernetes/pkg/util/intstr"
@@ -251,7 +250,7 @@ func truncate(b []byte, maxLen int) []byte {
}
func pickNode(c *client.Client) (string, error) {
nodes, err := c.Nodes().List(unversioned.ListOptions{})
nodes, err := c.Nodes().List(api.ListOptions{})
if err != nil {
return "", err
}