ListOptions: fix the doc on ResourceVersion

This commit is contained in:
Hongchao Deng
2016-07-06 14:50:18 -07:00
parent 2d30a967ea
commit 73821d20eb

View File

@@ -2226,7 +2226,11 @@ type ListOptions struct {
FieldSelector fields.Selector FieldSelector fields.Selector
// If true, watch for changes to this list // If true, watch for changes to this list
Watch bool 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 ResourceVersion string
// Timeout for the list/watch call. // Timeout for the list/watch call.
TimeoutSeconds *int64 TimeoutSeconds *int64