Update README.md
Update the documentation to note an issue with using stream and the api client.
This commit is contained in:
parent
c488354146
commit
2d1d8e6d9d
@ -185,3 +185,8 @@ Specifically check `ipaddress` and `urllib3` package versions to make sure they
|
||||
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
|
||||
of `resp = api.connect_get_namespaced_pod_exec(name, ...` you should call `resp = stream(api.connect_get_namespaced_pod_exec, name, ...`.
|
||||
See more at [exec example](examples/exec.py).
|
||||
|
||||
Using Stream will overwrite the requests protocol in _core_v1_api.CoreV1Api()_
|
||||
This will cause a failure in non-exec/attach calls. If you reuse your api client object, you will need to
|
||||
recreate it between api calls that use _stream_ and other api calls.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user