mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-08 14:29:45 +00:00
Simplify List() signature in clients.
This commit is contained in:
@@ -22,8 +22,6 @@ import (
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
"k8s.io/kubernetes/pkg/api/testapi"
|
||||
"k8s.io/kubernetes/pkg/api/unversioned"
|
||||
"k8s.io/kubernetes/pkg/fields"
|
||||
"k8s.io/kubernetes/pkg/labels"
|
||||
)
|
||||
|
||||
func TestListEndpoints(t *testing.T) {
|
||||
@@ -44,7 +42,7 @@ func TestListEndpoints(t *testing.T) {
|
||||
},
|
||||
},
|
||||
}
|
||||
receivedEndpointsList, err := c.Setup(t).Endpoints(ns).List(labels.Everything(), fields.Everything(), unversioned.ListOptions{})
|
||||
receivedEndpointsList, err := c.Setup(t).Endpoints(ns).List(unversioned.ListOptions{})
|
||||
c.Validate(t, receivedEndpointsList, err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user