1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-08 10:49:25 +00:00

#50914 - Changed ParseQuery projectornamespace Handling (#718)

* 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:
Felipe Gehrke
2025-07-17 14:51:13 -03:00
committed by GitHub
parent 0c2c554c8c
commit b556256ed3
8 changed files with 67 additions and 20 deletions

View File

@@ -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