Merge pull request #28524 from hongchaodeng/listopt
Automatic merge from submit-queue ListOptions: add test for ResourceVersion > 0 in List ref: #28472 Done: - Add a test for ResourceVersion > 0 in registry (cache) store List() - Fix the docs.
This commit is contained in:
@@ -2232,7 +2232,11 @@ type ListOptions struct {
|
||||
FieldSelector fields.Selector
|
||||
// If true, watch for changes to this list
|
||||
Watch bool
|
||||
// The resource version to watch (no effect on list yet)
|
||||
// For watch, it's the resource version to watch.
|
||||
// For list,
|
||||
// - if unset, then the result is returned from remote storage based on quorum-read flag;
|
||||
// - if it's 0, then we simply return what we currently have in cache, no guarantee;
|
||||
// - if set to non zero, then the result is as fresh as given rv.
|
||||
ResourceVersion string
|
||||
// Timeout for the list/watch call.
|
||||
TimeoutSeconds *int64
|
||||
|
Reference in New Issue
Block a user