From 5e5de93c08d5a07e33dd66ec8d9aae741582a301 Mon Sep 17 00:00:00 2001 From: Tomasz Prus Date: Sun, 24 Nov 2024 00:56:13 +0100 Subject: [PATCH] Add notice about a breaking change (#341) --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b9a78d1..6186b37b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # v31.1.0 +### Breaking changes: + +* 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)) + + Example: + ```python + websocket = await core_v1_ws.connect_get_namespaced_pod_exec(...) + # now context manager is returned which can be used in this way: + async with websocket as ws: + ... + await ws.send_bytes(...) + ``` + +### Changes: + * Added `load_config` function ([#331](https://github.com/tomplus/kubernetes_asyncio/pull/331), [@james-mchugh](https://github.com/james-mchugh)) * Watch() retries 410 errors ([#327](https://github.com/tomplus/kubernetes_asyncio/pull/327), [@tomplus](https://github.com/tomplus)) * Pod exec enhancements ([#328](https://github.com/tomplus/kubernetes_asyncio/pull/328), [@olivier-matz-6wind](https://github.com/olivier-matz-6wind))