Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

fix watching with a specified resource version #109

Merged
merged 1 commit into from
Jan 23, 2019

Commits on Jan 23, 2019

  1. fix watching with a specified resource version

    The watch code reset the version to the last found in the
    response.
    When you first list existing objects and then start watching from that
    resource version the existing versions are older than the version you
    wanted and the watch starts from the wrong version after the first
    restart.
    This leads to for example already deleted objects ending in the stream
    again.
    
    Fix this by setting the minimum resource version to reset from to the
    input resource version. As long as k8s returns all objects in order in
    the watch this should work.
    We cannot use the integer value of the resource version to order it as
    one should be treat the value as opaque.
    
    Closes kubernetes-client/python#700
    juliantaylor committed Jan 23, 2019
    Configuration menu
    Copy the full SHA
    3c30a30 View commit details
    Browse the repository at this point in the history