mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Fix incorrect watch cache sizes
This commit is contained in:
parent
9dec47dc28
commit
8985c6ba4f
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user