From 34b5303daf699651a4ef2fae83774234f1bf199b Mon Sep 17 00:00:00 2001 From: Charandas Date: Thu, 14 Mar 2024 16:33:41 -0700 Subject: [PATCH] K8s: file-storage: provide empty for resourceVersion initially (#84523) --- pkg/apiserver/storage/file/file.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/apiserver/storage/file/file.go b/pkg/apiserver/storage/file/file.go index d3c70ba268b..68fb81583d8 100644 --- a/pkg/apiserver/storage/file/file.go +++ b/pkg/apiserver/storage/file/file.go @@ -355,10 +355,9 @@ func (s *Storage) GetList(ctx context.Context, key string, opts storage.ListOpti return err } - // TODO: hack the resource version for now // Watch is failing when set the list resourceVersion to 0, even though informers provide that in the opts if opts.ResourceVersion == "0" { - opts.ResourceVersion = "1" + opts.ResourceVersion = "" } if opts.ResourceVersion != "" {