From d43f2ef22889835e8d0562f0d35c058ae2806a79 Mon Sep 17 00:00:00 2001 From: Joe Betz Date: Thu, 21 Mar 2019 11:25:07 -0700 Subject: [PATCH] Add resourceVersion=0 paginated list integration test for disabled and enabled watch cache Kubernetes-commit: e5a4f09ab3ac15815ceb039fbc7f546266855fd6 --- tools/cache/reflector.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/cache/reflector.go b/tools/cache/reflector.go index 21bba3ae..023fd5e8 100644 --- a/tools/cache/reflector.go +++ b/tools/cache/reflector.go @@ -192,6 +192,7 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error { if r.WatchListPageSize != 0 { pager.PageSize = r.WatchListPageSize } + // Pager falls back to full list if paginated list calls fail due to an "Expired" error. list, err = pager.List(context.Background(), options) close(listCh) }()