Merge pull request #18080 from wojtek-t/list_options_in_listwatch

Pass ListOptions to List in ListWatch.
This commit is contained in:
Wojciech Tyczynski
2015-12-09 14:27:51 +01:00
38 changed files with 105 additions and 101 deletions

View File

@@ -107,8 +107,8 @@ func NewLifecycle(c client.Interface) admission.Interface {
store := cache.NewStore(cache.MetaNamespaceKeyFunc)
reflector := cache.NewReflector(
&cache.ListWatch{
ListFunc: func() (runtime.Object, error) {
return c.Namespaces().List(unversioned.ListOptions{})
ListFunc: func(options unversioned.ListOptions) (runtime.Object, error) {
return c.Namespaces().List(options)
},
WatchFunc: func(options unversioned.ListOptions) (watch.Interface, error) {
return c.Namespaces().Watch(options)