mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-28 12:21:12 +00:00
Simplify List() signature in clients.
This commit is contained in:
@@ -24,8 +24,6 @@ import (
|
||||
"k8s.io/kubernetes/pkg/api/testapi"
|
||||
"k8s.io/kubernetes/pkg/api/unversioned"
|
||||
"k8s.io/kubernetes/pkg/apis/extensions"
|
||||
"k8s.io/kubernetes/pkg/fields"
|
||||
"k8s.io/kubernetes/pkg/labels"
|
||||
)
|
||||
|
||||
func getDeploymentsResoureName() string {
|
||||
@@ -100,7 +98,7 @@ func TestDeploymentList(t *testing.T) {
|
||||
},
|
||||
Response: Response{StatusCode: 200, Body: deploymentList},
|
||||
}
|
||||
response, err := c.Setup(t).Deployments(ns).List(labels.Everything(), fields.Everything(), unversioned.ListOptions{})
|
||||
response, err := c.Setup(t).Deployments(ns).List(unversioned.ListOptions{})
|
||||
c.Validate(t, response, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user