mirror of
https://github.com/rancher/steve.git
synced 2025-09-08 10:49:25 +00:00
* changed ParseQuery projectornamespace handling * addressed comments from eric/chad and tom * fixing lint error * added resourceVersion to list * updated mocks * updated tests * Update tests after rebase --------- Co-authored-by: Tom Lebreux <tom.lebreux@suse.com>
This commit is contained in:
@@ -285,6 +285,16 @@ func NewListOptionIndexer(ctx context.Context, s Store, opts ListOptionIndexerOp
|
||||
return l, nil
|
||||
}
|
||||
|
||||
func (l *ListOptionIndexer) GetLatestResourceVersion() []string {
|
||||
var latestRV []string
|
||||
|
||||
l.latestRVLock.RLock()
|
||||
latestRV = []string{l.latestRV}
|
||||
l.latestRVLock.RUnlock()
|
||||
|
||||
return latestRV
|
||||
}
|
||||
|
||||
func (l *ListOptionIndexer) Watch(ctx context.Context, opts WatchOptions, eventsCh chan<- watch.Event) error {
|
||||
l.latestRVLock.RLock()
|
||||
latestRV := l.latestRV
|
||||
|
Reference in New Issue
Block a user