Unify per-resource List for unversioned client

This commit is contained in:
Wojciech Tyczynski
2015-10-13 12:11:48 +02:00
parent dfb400e2e9
commit 647aa1bc8c
34 changed files with 73 additions and 67 deletions

View File

@@ -527,7 +527,7 @@ func runSelfLinkTestOnNamespace(c *client.Client, namespace string) {
glog.Fatalf("Failed listing service with supplied self link '%v': %v", svc.SelfLink, err)
}
svcList, err := services.List(labels.Everything())
svcList, err := services.List(labels.Everything(), fields.Everything())
if err != nil {
glog.Fatalf("Failed listing services: %v", err)
}
@@ -748,7 +748,7 @@ func runPatchTest(c *client.Client) {
func runMasterServiceTest(client *client.Client) {
time.Sleep(12 * time.Second)
svcList, err := client.Services(api.NamespaceDefault).List(labels.Everything())
svcList, err := client.Services(api.NamespaceDefault).List(labels.Everything(), fields.Everything())
if err != nil {
glog.Fatalf("Unexpected error listing services: %v", err)
}
@@ -875,7 +875,7 @@ func runServiceTest(client *client.Client) {
glog.Fatalf("FAILED: service in other namespace should have no endpoints: %v", err)
}
svcList, err := client.Services(api.NamespaceAll).List(labels.Everything())
svcList, err := client.Services(api.NamespaceAll).List(labels.Everything(), fields.Everything())
if err != nil {
glog.Fatalf("Failed to list services across namespaces: %v", err)
}