mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Pass ListOptions to List in ListWatch.
This commit is contained in:
4
pkg/client/cache/reflector_test.go
vendored
4
pkg/client/cache/reflector_test.go
vendored
@@ -35,7 +35,9 @@ type testLW struct {
|
||||
WatchFunc func(resourceVersion string) (watch.Interface, error)
|
||||
}
|
||||
|
||||
func (t *testLW) List() (runtime.Object, error) { return t.ListFunc() }
|
||||
func (t *testLW) List(options unversioned.ListOptions) (runtime.Object, error) {
|
||||
return t.ListFunc()
|
||||
}
|
||||
func (t *testLW) Watch(options unversioned.ListOptions) (watch.Interface, error) {
|
||||
return t.WatchFunc(options.ResourceVersion)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user