Merge pull request #4453 from derekwaynecarr/make_quota_more_efficient

Make ListWatch work with a ListFunc and WatchFunc
This commit is contained in:
Clayton Coleman
2015-02-17 14:48:11 -05:00
7 changed files with 94 additions and 104 deletions

View File

@@ -95,7 +95,7 @@ func NewMainKubelet(
serviceStore := cache.NewStore(cache.MetaNamespaceKeyFunc)
if kubeClient != nil {
cache.NewReflector(&cache.ListWatch{kubeClient, labels.Everything(), "services", api.NamespaceAll}, &api.Service{}, serviceStore).Run()
cache.NewReflector(cache.NewListWatchFromClient(kubeClient, "services", api.NamespaceAll, labels.Everything()), &api.Service{}, serviceStore).Run()
}
serviceLister := &cache.StoreToServiceLister{serviceStore}