Skip to content

Commit abe6c4c

Browse files
authored
Merge pull request #1700 from e-ngo/prevent-watch-from-resetting-rv
Prevent watch from resetting ResourceVersion.
2 parents b4c3485 + 7f17751 commit abe6c4c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/watch/watch.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ func (i *InstrumentedListerWatcher) List(options metav1.ListOptions) (res runtim
9393
// Watch is a wrapper func around the cache.ListerWatcher.Watch func. It increases the success/error
9494
// counters based on the outcome of the Watch operation it instruments.
9595
func (i *InstrumentedListerWatcher) Watch(options metav1.ListOptions) (res watch.Interface, err error) {
96-
97-
if i.useAPIServerCache {
98-
options.ResourceVersion = "0"
99-
}
100-
10196
res, err = i.lw.Watch(options)
10297
if err != nil {
10398
i.metrics.WatchTotal.WithLabelValues("error", i.resource).Inc()

0 commit comments

Comments
 (0)