Commit 844407e6 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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
parents 51901ef8 8985c6ba
...@@ -1125,7 +1125,7 @@ func (e *Store) CompleteWithOptions(options *generic.StoreOptions) error { ...@@ -1125,7 +1125,7 @@ func (e *Store) CompleteWithOptions(options *generic.StoreOptions) error {
if e.Storage == nil { if e.Storage == nil {
capacity := DefaultWatchCacheSize capacity := DefaultWatchCacheSize
if e.WatchCacheSize != 0 { if e.WatchCacheSize != 0 {
capacity = DefaultWatchCacheSize capacity = e.WatchCacheSize
} }
e.Storage, e.DestroyFunc = opts.Decorator( e.Storage, e.DestroyFunc = opts.Decorator(
e.Copier, e.Copier,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment