-
Notifications
You must be signed in to change notification settings - Fork 75
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 Dynamic Client support #260
Conversation
…_asyncio into dynamic_client
Signed-off-by: Bob Haddleton <[email protected]>
Signed-off-by: Bob Haddleton <[email protected]>
Signed-off-by: Bob Haddleton <[email protected]>
Signed-off-by: Bob Haddleton <[email protected]>
- remove delete_user_pvc, now handled by kubespawner - increase user cull timeout to a month - temporarily disable monitor until tomplus/kubernetes_asyncio#260
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impressive! Thanks for you contribution.
Signed-off-by: Bob Haddleton <[email protected]>
Signed-off-by: Bob Haddleton <[email protected]>
Signed-off-by: Bob Haddleton <[email protected]>
…_asyncio into dynamic_client
Signed-off-by: Bob Haddleton <[email protected]>
|
||
# Use field selector to query for named instance so the watch parameter is handled properly. | ||
if name: | ||
field_selector = f"metadata.name={name}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also pulled in the changes from this PR - kubernetes-client/python#2076 - to fix an issue with watching resources by name with the dynamic client.
Looks good to me. There is a minor issue in e2e tests, could you fix it? Thanks. |
Signed-off-by: Bob Haddleton <[email protected]>
Sorry for bothering you again, now flak8 complains... |
Signed-off-by: Bob Haddleton <[email protected]>
Sorry, I should have caught those. Hopefully all is good now. |
Signed-off-by: Bob Haddleton <[email protected]>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #260 +/- ##
==========================================
- Coverage 24.67% 24.66% -0.01%
==========================================
Files 728 736 +8
Lines 97998 99024 +1026
==========================================
+ Hits 24178 24429 +251
- Misses 73820 74595 +775
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution.
Just a nitpick, but I think this commit misses a require change in setup.py. |
@Jean-Daniel You are right, thanks! Do you want to submit PR for it? |
Should it also be added to kubernetes_asyncio/__init__.py? https://github.com/tomplus/kubernetes_asyncio/blob/master/kubernetes_asyncio/__init__.py |
@bobh66 yes, it'd be beneficial. |
PR submitted: #266 |
Hi @tomplus - any chance we could get a release with these changes? Happy to help if there is anything I can do. Thanks! |
Sorry for the inconvenience, I'm going to release it over the weekend. |
It's been just released, v25.11.0. |
Ported the DynamicClient from the synchronous kubernetes client and converted to async. Included docs and examples.
Fixes #209