Skip to content

Commit c06bc2f

Browse files
authored
Merge pull request kubernetes#94363 from mborsz/patch-13
Add WatchListPageSize to cache.Config
2 parents 2a8640b + 43f5afe commit c06bc2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

staging/src/k8s.io/client-go/tools/cache/controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ type Config struct {
7272

7373
// Called whenever the ListAndWatch drops the connection with an error.
7474
WatchErrorHandler WatchErrorHandler
75+
76+
// WatchListPageSize is the requested chunk size of initial and relist watch lists.
77+
WatchListPageSize int64
7578
}
7679

7780
// ShouldResyncFunc is a type of function that indicates if a reflector should perform a
@@ -134,6 +137,7 @@ func (c *controller) Run(stopCh <-chan struct{}) {
134137
c.config.FullResyncPeriod,
135138
)
136139
r.ShouldResync = c.config.ShouldResync
140+
r.WatchListPageSize = c.config.WatchListPageSize
137141
r.clock = c.clock
138142
if c.config.WatchErrorHandler != nil {
139143
r.watchErrorHandler = c.config.WatchErrorHandler

0 commit comments

Comments
 (0)