Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add bookmark support in watcher #291

Merged
merged 1 commit into from
Nov 18, 2023

Conversation

tkauf15k
Copy link
Contributor

Issue: receiving bookmarks in watchers is not handled and raises errors while unmarshalling.

The official client just returns type==BOOKMARK together with the object.
Even more, they have a todo to set the watcher resource_version attribute in the future; this has been done here as well.

https://github.com/kubernetes-client/python/blob/36cfbe68a509d9b9d33395b22b6fa94d7d46c30f/kubernetes/base/watch/watch.py#L103

  • Test added
  • flake & isort applied

@tomplus
Copy link
Owner

tomplus commented Nov 14, 2023

Thanks for your contribution!

Copy link

codecov bot commented Nov 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7d43571) 23.38% compared to head (b829d42) 23.39%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #291   +/-   ##
=======================================
  Coverage   23.38%   23.39%           
=======================================
  Files         749      749           
  Lines      104982   104991    +9     
=======================================
+ Hits        24555    24564    +9     
  Misses      80427    80427           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tkauf15k
Copy link
Contributor Author

hey! thanks for checking so fast; any ideas when you plan to make the next release? (tbh kinda waiting for that fix)

@tomplus
Copy link
Owner

tomplus commented Nov 17, 2023

No problem, I'll release it this weekend.

@tomplus tomplus merged commit 92ea4b0 into tomplus:master Nov 18, 2023
7 checks passed
tomplus pushed a commit that referenced this pull request Nov 18, 2023
Co-authored-by: Thomas Kaufmann <thomaskaufmann@siemens.com>
@tomplus
Copy link
Owner

tomplus commented Nov 18, 2023

It has been released, v28.2.1
Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants