K8s: file-storage: provide empty for resourceVersion initially (#84523)

This commit is contained in:
Charandas 2024-03-14 16:33:41 -07:00 committed by GitHub
parent 0fa0cede75
commit 34b5303daf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 != "" {