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 |
||
|---|---|---|
| .. | ||
| .github | ||
| config | ||
| dynamic | ||
| hack | ||
| leaderelection | ||
| stream | ||
| watch | ||
| .gitignore | ||
| .travis.yml | ||
| code-of-conduct.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| OWNERS | ||
| README.md | ||
| run_tox.sh | ||
| SECURITY_CONTACTS | ||
| tox.ini | ||
python-base
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.