python/kubernetes/base
Kevinz857 d88d61bffb feat: add switch control when watching events whether deserialization is required
This PR adds an option to disable automatic deserialization in the Watch stream().
By allowing clients to opt-out of automatic deserialization when only basic
JSON parsing is needed, we can significantly reduce time cost and improve
event processing throughput. This is particularly important in scenarios with
high event volumes or resource constraints.

Key changes:
- Added a 'deserialize' parameter to Watch.stream() method (defaults to True for backward compatibility)
- When deserialize=False, events are only JSON parsed without model conversion
- Maintains the original behavior when deserialize=True
- Added test cases to verify both behaviors
2025-05-31 18:33:21 +08:00
..
.github removed submodule 2022-01-07 16:17:39 -08:00
config Merge pull request #2340 from tomasaschan/fix-exec-provider 2025-02-14 08:40:22 -08:00
dynamic Add support for allowWatchBookmarks to the dynamic client 2025-01-07 11:35:28 +00:00
hack removed submodule 2022-01-07 16:17:39 -08:00
leaderelection Fix typos 2023-01-27 11:10:29 +08:00
stream Close the Python sockets when the Websocket closes 2025-01-06 08:17:09 +00:00
watch feat: add switch control when watching events whether deserialization is required 2025-05-31 18:33:21 +08:00
.gitignore removed submodule 2022-01-07 16:17:39 -08:00
.travis.yml removed submodule 2022-01-07 16:17:39 -08:00
code-of-conduct.md removed submodule 2022-01-07 16:17:39 -08:00
CONTRIBUTING.md removed submodule 2022-01-07 16:17:39 -08:00
LICENSE removed submodule 2022-01-07 16:17:39 -08:00
OWNERS removed submodule 2022-01-07 16:17:39 -08:00
README.md removed submodule 2022-01-07 16:17:39 -08:00
run_tox.sh Fix typo: kubenetes -> kubernetes 2022-03-28 19:52:37 +08:00
SECURITY_CONTACTS removed submodule 2022-01-07 16:17:39 -08:00
tox.ini removed submodule 2022-01-07 16:17:39 -08: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.