Skip to content

Commit c80976c

Browse files
p0lyn0mialk8s-publishing-bot
authored andcommitted
downgrade reflector watchlist fallback log to V(4)
Kubernetes-commit: 4691935a3e87dd3a9694d36df885cc224f73545f
1 parent ab04e77 commit c80976c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tools/cache/reflector.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,10 @@ func (r *Reflector) ListAndWatchWithContext(ctx context.Context) error {
419419
return nil
420420
}
421421
if err != nil {
422-
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")
422+
logger.V(4).Info(
423+
"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.",
424+
"err", err,
425+
)
423426
fallbackToList = true
424427
// ensure that we won't accidentally pass some garbage down the watch.
425428
w = nil

0 commit comments

Comments
 (0)