downgrade reflector watchlist fallback log to V(4)

Kubernetes-commit: 3f42ca14011e972ee439a27d47415bc7574f2317
This commit is contained in:
Lukasz Szaszkiewicz
2025-12-04 16:14:19 +01:00
committed by Kubernetes Publisher
parent 891f94c690
commit 2fe4ac239c

View File

@@ -426,7 +426,10 @@ func (r *Reflector) ListAndWatchWithContext(ctx context.Context) error {
return nil
}
if err != nil {
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")
logger.V(4).Info(
"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.",
"err", err,
)
fallbackToList = true
// ensure that we won't accidentally pass some garbage down the watch.
w = nil