cache/controller: Add ENABLE_CLIENT_GO_WATCH_LIST_ALPHA

Kubernetes-commit: 966b26d55c22f7fbf20841a3a993de4f984d88db
This commit is contained in:
Lukasz Szaszkiewicz 2023-03-07 12:34:11 +01:00 committed by Kubernetes Publisher
parent 8b3d5d0ea8
commit 515ef372fb
1 changed files with 3 additions and 0 deletions

View File

@ -415,6 +415,9 @@ func NewCacherFromConfig(config Config) (*Cacher, error) {
// We don't want to terminate all watchers as recreating all watchers puts high load on api-server. // We don't want to terminate all watchers as recreating all watchers puts high load on api-server.
// In most of the cases, leader is reelected within few cycles. // In most of the cases, leader is reelected within few cycles.
reflector.MaxInternalErrorRetryDuration = time.Second * 30 reflector.MaxInternalErrorRetryDuration = time.Second * 30
// since the watch-list is provided by the watch cache instruct
// the reflector to issue a regular LIST against the store
reflector.UseWatchList = false
cacher.watchCache = watchCache cacher.watchCache = watchCache
cacher.reflector = reflector cacher.reflector = reflector