Commit Graph

1899 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
c330b84e5f
Merge pull request #2406 from Kevinz857/feat-deserialize-control-v2
Some checks failed
End to End Tests - master / build (3.10) (push) Has been cancelled
End to End Tests - master / build (3.8) (push) Has been cancelled
End to End Tests - master / build (3.9) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.10) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.11) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.12) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.8) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.9, coverage) (push) Has been cancelled
feat: Add option to control deserialization when watching events
2025-06-24 13:18:27 -07:00
Kubernetes Prow Robot
51f4db5706
Merge pull request #2390 from p172913/master
Changes made in configuration.py to accept environmental variables
2025-06-24 13:00:31 -07:00
Raj Bhargav
945de4ed37
Merge branch 'kubernetes-client:master' into master 2025-06-10 16:36:36 +05:30
Raj Bhargav
e3b373fc1f Added proxy variable to read values from environment
What type of PR is this?
/kind bug

What this PR does / why we need it:
This PRs will read environment variables assigned for proxy and no_proxy.

Update ws_client_test.py

Update configuration.py
What type of PR is this?
/kind bug

What this PR does / why we need it:
This PRs will read environment variables assigned for proxy and no_proxy.

Update configuration.py

Add debug logging doc and example

add .readthedocs.yaml config file

Added

Added insert_proxy_config.sh to edit configuration.py in client

Revert "Added insert_proxy_config.sh to edit configuration.py in client"

This reverts commit b295c2ddcbb838196823c4d7a55a67fd1d1dc290.

To avoid condition self.no_proxy is already present
2025-06-10 16:27:05 +05:30
Kubernetes Prow Robot
3e6cc58719
Merge pull request #2413 from yliaog/master
updated compatibility matrix and maintenance status
2025-06-09 12:06:23 -07:00
yliao
7b759143d8 updated compatibility matrix and maintenance status 2025-06-09 15:38:01 +00:00
Kubernetes Prow Robot
ba728cc305
Merge pull request #2409 from yliaog/master
updated compatibility matrix
2025-06-02 15:28:37 -07:00
yliao
9c96ab5d0b updated compatibility matrix 2025-06-02 16:09:00 +00:00
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
Kubernetes Prow Robot
7c22fc1023
Merge pull request #2401 from yliaog/master
updated compatibility matrix and maintenance status
2025-05-27 12:44:16 -07:00
yliao
4dd0b3efac updated compatibility matrix and maintenance status 2025-05-27 19:15:37 +00:00
Kubernetes Prow Robot
09146ba5a3
Merge pull request #2398 from yliaog/master
snapshot release 1.33.1
2025-05-27 11:30:16 -07:00
yliao
3fa4610d22 generated client change 2025-05-26 20:59:05 +00:00
yliao
1cc7ca51be generated API change 2025-05-26 20:59:04 +00:00
yliao
973254826b generated client change for custom_objects 2025-05-26 20:59:03 +00:00
yliao
c8ae995be9 update changelog 2025-05-26 20:58:17 +00:00
yliao
9579f3e8be update version constants for 33.0.0+snapshot release 2025-05-26 20:58:16 +00:00
Kubernetes Prow Robot
c9db1a349c
Merge pull request #2254 from aapjeisbaas/fixthedocs
add .readthedocs.yaml config file to fix docs pipeline
2025-05-14 09:03:20 -07:00
Kubernetes Prow Robot
83f460a681
Merge pull request #2330 from umutdz/add-debug-logging-doc
Doc: Added debug logging doc and example
2025-04-30 09:05:55 -07:00
Umut Deniz
b3874790fb Add debug logging doc and example 2025-04-30 15:52:46 +02:00
Kubernetes Prow Robot
d010f2efd6
Merge pull request #2317 from anvil-works/allow_watch_bookmarks
Add support for allowWatchBookmarks to the dynamic client
2025-04-24 13:54:31 -07:00
Pete
0945c8b4b1
Add an example of watch recovery using resource_version and bookmarks 2025-04-24 19:40:41 +01:00
Kubernetes Prow Robot
50771fdef6
Merge pull request #2384 from ViduminiKulathunga/enable-debug-logging-doc
Add instructions for enabling debug logging in the Kubernetes Python
2025-04-10 06:44:47 -07:00
Kubernetes Prow Robot
2eca99a621
Merge pull request #2383 from dalongxia2017/patch-1
Update README.md
2025-04-09 13:10:46 -07:00
ViduminiKulathunga
11b9733789 Add instructions for enabling debug logging in the Kubernetes Python client 2025-04-09 09:39:11 +02:00
dalongxia2017
b1b3e3a62e
Update README.md
Remove redundant statements.
2025-04-07 22:36:19 +08:00
Kubernetes Prow Robot
bd323606b9
Merge pull request #2372 from p172913/master
Changes made in wacth.py to print Empty newlines that are skipped when watching pod logs.
2025-03-21 10:56:32 -07:00
Raj Bhargav
d451d2fc7a
Update watch_test.py
As per request added few empty lines to test case in watch_test.py
2025-03-20 11:23:23 +05:30
Raj Bhargav
f4d0842d0e
Update watch.py
Changes made in watch.py to print multiple empty line if necessary.
2025-03-20 11:21:20 +05:30
Raj Bhargav
1e093d04aa
Update watch_test.py
Changes made to check whether entire log is printed or not.
2025-03-20 01:44:56 +05:30
Raj Bhargav
1268769cc0
Update watch_test.py
Removed pod_manifest from watch_test.py.
2025-03-20 00:27:16 +05:30
Raj Bhargav
f0a73c8824
Update watch.py
Changes made in unmarshal_event for not having issues with empty lines.
2025-03-19 14:15:44 +05:30
Raj Bhargav
14a2554c18
Delete kubernetes/test/test_pod_logs.py
Deleting file with tests added in test/test_pod_los.py
2025-03-18 13:48:38 +05:30
Raj Bhargav
3cee537e63
Update watch_test.py
Added a unit test name test_pod_log_empty_lines to check if watch is printing empty lines. And made changes in test_watch_with_interspersed_newlines as the watch is also printing empty line. Added a condition to check for empty lines in ogs to avoid the errors.
2025-03-18 13:46:41 +05:30
Raj Bhargav
b2f975537c
Create test_pod_logs.py
This file is to test whether empty line are printed when watch function in the kubernetes python client is used.
2025-03-13 13:57:29 +05:30
Raj Bhargav
d1adc8a544
Changes for issue 2358
Changes made in wacth.py to print Empty newlines that are skipped when watching pod logs.
2025-03-08 20:45:32 +05:30
Kubernetes Prow Robot
d80165da21
Merge pull request #2349 from yliaog/master
32.0.1 release
2025-02-18 12:10:26 -08:00
Kubernetes Prow Robot
230925f338
Merge pull request #2200 from Harshu1441/master
Added the Pod_log.py file in example
2025-02-17 10:16:23 -08:00
Harsh Sharma
b41b95505b
Update pod_logs.py 2025-02-16 12:54:15 +05:30
yliao
47a5d2a9d6 update changelog with release notes from master branch 2025-02-14 21:55:40 +00:00
yliao
6073b9e352 Update the compatibility matrix and maintenance status 2025-02-14 21:55:00 +00:00
Kubernetes Prow Robot
de280fbf1f
Merge pull request #2340 from tomasaschan/fix-exec-provider
Fix exec provider
2025-02-14 08:40:22 -08:00
Tomas Aschan
a588f51328
Address review feedback 2025-02-14 15:43:39 +01:00
Harsh Sharma
eb34f98c9c
Update pod_logs.py 2025-02-09 23:23:06 +05:30
Kubernetes Prow Robot
234a493557
Merge pull request #2327 from h-ema-r/master
Doc: Added Introduction to Kubernetes patch types and examples
2025-02-02 09:16:55 -08:00
Kubernetes Prow Robot
065a968e9e
Merge pull request #2338 from akhilputhiry/2333
mark shell=False in ExecProvider for linux/darwin platforms
2025-01-31 09:12:56 -08:00
Kubernetes Prow Robot
9775a1276b
Merge pull request #2216 from rkschamer/master
Adding utils.format_quantity
2025-01-29 07:45:24 -08:00
Tomas Aschan
f64be15641
fix: Extract value from ConfigNode before storing it 2025-01-29 15:00:41 +01:00
Tomas Aschan
df1b0c156f
Tweak test to fail like the production code does 2025-01-29 14:57:38 +01:00
Akhil Lawrence
e852ac71f9 mark shell=False in ExecProvider for linux/darwin platforms 2025-01-29 07:51:33 +05:30