Go to file
Julian Taylor 3c30a30993 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 https://github.com/kubernetes-client/python/issues/700
2019-01-23 19:38:44 +01:00
config Merge pull request #45 from bran-wang/master 2018-11-12 10:21:11 -08:00
stream Fix exec command parameter expansion 2017-10-11 17:17:09 -07:00
watch fix watching with a specified resource version 2019-01-23 19:38:44 +01:00
.gitignore Ignore IDE files 2017-06-09 13:22:07 -07:00
.travis.yml Travis CI for Python 3.7 2018-11-09 20:22:11 -06:00
code-of-conduct.md Add code-of-conduct.md 2017-12-20 14:15:28 -05:00
CONTRIBUTING.md Add CONTRIBUTING.md 2018-07-19 11:31:27 +05:30
LICENSE Initial commit 2017-04-19 16:12:18 -07:00
OWNERS added OWNERS file. 2018-08-06 10:13:34 -07:00
README.md Remove link to kubernetes-client/community 2018-08-23 10:51:03 -07:00
run_tox.sh Update client-python url 2018-02-12 16:11:05 -08:00
SECURITY_CONTACTS Add SECURITY_CONTACTS 2018-07-10 16:13:56 -07:00
tox.ini Travis CI for Python 3.7 2018-11-09 20:22:11 -06:00

python-base

Build Status

This is the utility part of the python client. It has been added to the main repo using git submodules. This structure allow other developers to create their own kubernetes client and still use standard kubernetes python utilities. For more information refer to clients-library-structure.

Contributing

Please see CONTRIBUTING.md for instructions on how to contribute.