Skip to content

Commit 2d1d8e6

Browse files
authored
Update README.md
Update the documentation to note an issue with using stream and the api client.
1 parent c488354 commit 2d1d8e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,8 @@ Specifically check `ipaddress` and `urllib3` package versions to make sure they
185185
Starting from 4.0 release, we do not support directly calling exec or attach calls. you should use stream module to call them. so instead
186186
of `resp = api.connect_get_namespaced_pod_exec(name, ...` you should call `resp = stream(api.connect_get_namespaced_pod_exec, name, ...`.
187187
See more at [exec example](examples/exec.py).
188+
189+
Using Stream will overwrite the requests protocol in _core_v1_api.CoreV1Api()_
190+
This will cause a failure in non-exec/attach calls. If you reuse your api client object, you will need to
191+
recreate it between api calls that use _stream_ and other api calls.
192+

0 commit comments

Comments
 (0)