Skip to content

Commit dc65171

Browse files
committed
Make immutable and non-mutating client properties nonisolated
1 parent bfc4afd commit dc65171

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.22.0
4+
5+
- Make immutable and non-mutating client properties nonisolated
6+
37
## 0.21.0
48

59
- Make client implementations actors

Sources/SwiftkubeClient/Client/KubernetesClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import SwiftkubeModel
3939
public actor KubernetesClient {
4040

4141
/// The client's configuration object.
42-
public let config: KubernetesClientConfig
42+
public nonisolated let config: KubernetesClientConfig
4343
internal let httpClient: HTTPClient
4444
internal let logger: Logger
4545

Sources/SwiftkubeClient/Discovery/KubernetesClient+Discovery.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public protocol DiscoveryAPI {
6969
public extension KubernetesClient {
7070

7171
/// Constructs a client fot ``DiscoveryAPI``.
72-
var discoveryClient: DiscoveryAPI {
72+
nonisolated var discoveryClient: DiscoveryAPI {
7373
DiscoveryClient(httpClient: httpClient, config: config, jsonDecoder: jsonDecoder, logger: logger)
7474
}
7575
}

0 commit comments

Comments
 (0)