Skip to content

Commit 75032c9

Browse files
committed
Update README and CHANGELOG
1 parent a1bb1ac commit 75032c9

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.21.0
4+
5+
- Make client implementations actors
6+
- Mark synchronous shutdown methods as nonisolated
7+
- Make API-Groups protocols and implementations as Sendable
8+
39
## 0.20.0
410

511
- Mark configuration structs as Sendable

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ on [SwiftNIO](https://github.com/apple/swift-nio) and the [AysncHTTPClient](http
7676
| `0.17.x` | - | - | - || - | - |
7777
| `0.18.x` | - | - | - | - || - |
7878
| `0.19.x` | - | - | - | - | - ||
79+
| `0.20.x` | - | - | - | - | - ||
80+
| `0.21.x` | - | - | - | - | - ||
7981

8082
- `` Exact match of API objects in both client and the Kubernetes version.
8183
- `-` API objects mismatches either due to the removal of old API or the addition of new API. However, everything the
@@ -259,7 +261,7 @@ The task instance must be started explicitly via ``SwiftkubeClientTask/start()``
259261
buffering policy is used, which should be taken into consideration.
260262

261263
```swift
262-
let task: SwiftkubeClientTask = client.pods.watch(in: .allNamespaces)
264+
let task: SwiftkubeClientTask = try await client.pods.watch(in: .allNamespaces)
263265
let stream = await task.start()
264266

265267
for try await event in stream {
@@ -275,7 +277,7 @@ let options = [
275277
.labelSelector(.exists(["env"]))
276278
]
277279

278-
let task = client.pods.watch(in: .default, options: options)
280+
let task = try await client.pods.watch(in: .default, options: options)
279281
```
280282

281283
The client reconnects automatically and restarts the watch upon encountering non-recoverable errors. The
@@ -293,7 +295,7 @@ let strategy = RetryStrategy(
293295
initialDelay = 5.0,
294296
jitter = 0.2
295297
)
296-
let task = client.pods.watch(in: .default, retryStrategy: strategy)
298+
let task = try await client.pods.watch(in: .default, retryStrategy: strategy)
297299

298300
for try await event in await task.stream() {
299301
print(event)
@@ -313,9 +315,9 @@ The `follow` API resembles the `watch`, but instead of events, it emits the log
313315
:warning: The client does not reconnect on errors in `follow` mode.
314316

315317
```swift
316-
let task = client.pods.follow(in: .default, name: "nginx", container: "app")
318+
let task = try await client.pods.follow(in: .default, name: "nginx", container: "app")
317319

318-
for try await line in task.start() {
320+
for try await line in await task.start() {
319321
print(line)
320322
}
321323

@@ -544,7 +546,7 @@ app.get("metrics") { request -> EventLoopFuture<String> in
544546
To use the `SwiftkubeClient` in a SwiftPM project, add the following line to the dependencies in your `Package.swift` file:
545547

546548
```swift
547-
.package(name: "SwiftkubeClient", url: "https://github.com/swiftkube/client.git", from: "0.19.0")
549+
.package(name: "SwiftkubeClient", url: "https://github.com/swiftkube/client.git", from: "0.21.0")
548550
```
549551

550552
then include it as a dependency in your target:
@@ -555,7 +557,7 @@ import PackageDescription
555557
let package = Package(
556558
// ...
557559
dependencies: [
558-
.package(name: "SwiftkubeClient", url: "https://github.com/swiftkube/client.git", from: "0.19.0")
560+
.package(name: "SwiftkubeClient", url: "https://github.com/swiftkube/client.git", from: "0.21.0")
559561
],
560562
targets: [
561563
.target(name: "<your-target>", dependencies: [

0 commit comments

Comments
 (0)