Skip to content

Commit 2fe4ac2

Browse files
p0lyn0mialk8s-publishing-bot
authored andcommitted
downgrade reflector watchlist fallback log to V(4)
Kubernetes-commit: 3f42ca14011e972ee439a27d47415bc7574f2317
1 parent 891f94c commit 2fe4ac2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/cache/reflector.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,10 @@ func (r *Reflector) ListAndWatchWithContext(ctx context.Context) error {
426426
return nil
427427
}
428428
if err != nil {
429-
logger.Error(err, "The watchlist request ended with an error, falling back to the standard LIST/WATCH semantics because making progress is better than deadlocking")
429+
logger.V(4).Info(
430+
"Data couldn't be fetched in watchlist mode. Falling back to regular list. This is expected if watchlist is not supported or disabled in kube-apiserver.",
431+
"err", err,
432+
)
430433
fallbackToList = true
431434
// ensure that we won't accidentally pass some garbage down the watch.
432435
w = nil

0 commit comments

Comments
 (0)