Merge pull request #41060 from wojtek-t/fix_too_old_watch_errors

Automatic merge from submit-queue (batch tested with PRs 40382, 41060)

Fix incorrect watch cache sizes

Fix #41013
This commit is contained in:
Kubernetes Submit Queue 2017-02-07 02:36:07 -08:00 committed by GitHub
commit 844407e6ca

View File

@ -1125,7 +1125,7 @@ func (e *Store) CompleteWithOptions(options *generic.StoreOptions) error {
if e.Storage == nil {
capacity := DefaultWatchCacheSize
if e.WatchCacheSize != 0 {
capacity = DefaultWatchCacheSize
capacity = e.WatchCacheSize
}
e.Storage, e.DestroyFunc = opts.Decorator(
e.Copier,