Switch to versioned ListOptions in client.
This commit is contained in:
@@ -18,7 +18,6 @@ package testclient
|
||||
|
||||
import (
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
"k8s.io/kubernetes/pkg/api/unversioned"
|
||||
"k8s.io/kubernetes/pkg/watch"
|
||||
)
|
||||
|
||||
@@ -37,7 +36,7 @@ func (c *FakeNamespaces) Get(name string) (*api.Namespace, error) {
|
||||
return obj.(*api.Namespace), err
|
||||
}
|
||||
|
||||
func (c *FakeNamespaces) List(opts unversioned.ListOptions) (*api.NamespaceList, error) {
|
||||
func (c *FakeNamespaces) List(opts api.ListOptions) (*api.NamespaceList, error) {
|
||||
obj, err := c.Fake.Invokes(NewRootListAction("namespaces", opts), &api.NamespaceList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
@@ -69,7 +68,7 @@ func (c *FakeNamespaces) Delete(name string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *FakeNamespaces) Watch(opts unversioned.ListOptions) (watch.Interface, error) {
|
||||
func (c *FakeNamespaces) Watch(opts api.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.InvokesWatch(NewRootWatchAction("namespaces", opts))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user