Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3739db0

Browse files
authored
Merge pull request kubernetes-client#865 from ymalen/patch-1
Update README.md
2 parents 3aea166 + be0a752 commit 3739db0

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
@@ -166,4 +166,9 @@ Specifically check `ipaddress` and `urllib3` package versions to make sure they
166166

167167
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
168168
of `resp = api.connect_get_namespaced_pod_exec(name, ...` you should call `resp = stream(api.connect_get_namespaced_pod_exec, name, ...`.
169+
170+
Using Stream will overwrite the requests protocol in _core_v1_api.CoreV1Api()_
171+
This will cause a failure in non-exec/attach calls. If you reuse your api client object, you will need to
172+
recreate it between api calls that use _stream_ and other api calls.
173+
169174
See more at [exec example](examples/pod_exec.py).

0 commit comments

Comments
 (0)