From 515ef372fbf3c44320481f639c8f1cb49622a7b5 Mon Sep 17 00:00:00 2001 From: Lukasz Szaszkiewicz Date: Tue, 7 Mar 2023 12:34:11 +0100 Subject: [PATCH] cache/controller: Add ENABLE_CLIENT_GO_WATCH_LIST_ALPHA Kubernetes-commit: 966b26d55c22f7fbf20841a3a993de4f984d88db --- pkg/storage/cacher/cacher.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/storage/cacher/cacher.go b/pkg/storage/cacher/cacher.go index 3948129c5..8620c9fcb 100644 --- a/pkg/storage/cacher/cacher.go +++ b/pkg/storage/cacher/cacher.go @@ -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. // In most of the cases, leader is reelected within few cycles. 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.reflector = reflector