• Kubernetes Submit Queue's avatar
    Merge pull request #68065 from wojtek-t/fix_unnecessary_too_old_rv_errors · 3966b8bb
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 68051, 68130, 67211, 68065, 68117). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.
    
    Fix unnecessary too-old-errors from watch cache
    
    When initializing watch cache via LIST, we set its resource version to the RV of the list request.
    However, before this PR, the first incoming watch event (updating the watch cache) was moving the "smallest oldest known version" to RV of that watch event. So watch requests passing rv equal to the RV returned from the initial list were failing with "too old resource version".
    That is not needed, because we know that in the meantime there weren't any other watch events.
    
    This PR is addressing that issue.
    
    /assign @liggitt
    3966b8bb
Name
Last commit
Last update
..
src Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...