Automatic merge from submit-queue (batch tested with PRs 58547, 57228, 58528, 58499, 58618). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Send correct resource version for delete events from watch cache Fixes #58545 the watch cache filtering is returning the previous object content intact, including resource version. this is the logic the watch cache uses: ```go switch { case curObjPasses && !oldObjPasses: watchEvent = watch.Event{Type: watch.Added, Object: event.Object.DeepCopyObject()} case curObjPasses && oldObjPasses: watchEvent = watch.Event{Type: watch.Modified, Object: event.Object.DeepCopyObject()} case !curObjPasses && oldObjPasses: watchEvent = watch.Event{Type: watch.Deleted, Object: event.PrevObject.DeepCopyObject()} } ``` when processing a delete event, we should be sending the old object's content *but* with the event's resource version set in it. corresponding logic exists in the uncached stores: |
||
|---|---|---|
| .. | ||
| Godeps.json | ||
| Readme | ||
Readme
This directory tree is generated automatically by godep. Please do not edit. See https://github.com/tools/godep for more information.