Skip to content

Commit 5e5de93

Browse files
authored
Add notice about a breaking change (#341)
1 parent 1978af8 commit 5e5de93

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# v31.1.0
22

3+
### Breaking changes:
4+
5+
* Websocket connect method returns an asynchronous context manager instead of a websocket ([#328](https://github.com/tomplus/kubernetes_asyncio/pull/328), [@olivier-matz-6wind](https://github.com/olivier-matz-6wind))
6+
7+
Example:
8+
```python
9+
websocket = await core_v1_ws.connect_get_namespaced_pod_exec(...)
10+
# now context manager is returned which can be used in this way:
11+
async with websocket as ws:
12+
...
13+
await ws.send_bytes(...)
14+
```
15+
16+
### Changes:
17+
318
* Added `load_config` function ([#331](https://github.com/tomplus/kubernetes_asyncio/pull/331), [@james-mchugh](https://github.com/james-mchugh))
419
* Watch() retries 410 errors ([#327](https://github.com/tomplus/kubernetes_asyncio/pull/327), [@tomplus](https://github.com/tomplus))
520
* Pod exec enhancements ([#328](https://github.com/tomplus/kubernetes_asyncio/pull/328), [@olivier-matz-6wind](https://github.com/olivier-matz-6wind))

0 commit comments

Comments
 (0)