mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
Bump min watch timeout for secret & configmap manager in Kubelet
This commit is contained in:
parent
29e38c19b8
commit
36141fa6fb
@ -224,12 +224,16 @@ func (c *objectCache) newReflectorLocked(namespace, name string) *objectCacheIte
|
||||
return c.watchObject(namespace, options)
|
||||
}
|
||||
store := c.newStore()
|
||||
reflector := cache.NewNamedReflector(
|
||||
fmt.Sprintf("object-%q/%q", namespace, name),
|
||||
reflector := cache.NewReflectorWithOptions(
|
||||
&cache.ListWatch{ListFunc: listFunc, WatchFunc: watchFunc},
|
||||
c.newObject(),
|
||||
store,
|
||||
0,
|
||||
cache.ReflectorOptions{
|
||||
Name: fmt.Sprintf("object-%q/%q", namespace, name),
|
||||
// Bump default 5m MinWatchTimeout to avoid recreating
|
||||
// watches too often.
|
||||
MinWatchTimeout: 30 * time.Minute,
|
||||
},
|
||||
)
|
||||
item := &objectCacheItem{
|
||||
refMap: make(map[types.UID]int),
|
||||
|
Loading…
Reference in New Issue
Block a user