Skip to content

Commit 1f87e20

Browse files
Separate Kubernetes client into a client part and an API part
1 parent ef41dc9 commit 1f87e20

File tree

9 files changed

+236
-153
lines changed

9 files changed

+236
-153
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Changed
8+
9+
- BREAKING: Kubernetes client separated into a client part and an API part. This
10+
follows now the same pattern as in kube-rs and was necessary because kube-rs
11+
0.75.0 constrains the Resource trait by a scope (see
12+
"https://github.com/kube-rs/kube/pull/956"). For instance,
13+
`client.get::<ConfigMap>(configmap_name, namespace)` must be migrated to
14+
`client.get_namespaced_api::<ConfigMap>(namespace).get(configmap_name)`
15+
([#481]).
16+
- Check added that `ClusterResources` are in the namespace of the
17+
cluster ([#481]).
18+
- k8s-openapi 0.15.0 -> 0.16.0 ([#481])
19+
- kube-rs 0.74.0 -> 0.75.0 ([#481])
20+
21+
[#481]: https://github.com/stackabletech/operator-rs/pull/481
22+
723
## [0.25.2] - 2022-09-27
824

925
This is a rerelease of 0.25.1 which some last-minute incompatible API changes to the additions that would have been released in 0.25.1.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const_format = "0.2.26"
1414
either = "1.8.0"
1515
futures = "0.3.23"
1616
json-patch = "0.2.6"
17-
k8s-openapi = { version = "0.15.0", default-features = false, features = ["schemars", "v1_24"] }
18-
kube = { version = "0.74.0", features = ["jsonpatch", "runtime", "derive"] }
17+
k8s-openapi = { version = "0.16.0", default-features = false, features = ["schemars", "v1_24"] }
18+
kube = { version = "0.75.0", features = ["jsonpatch", "runtime", "derive"] }
1919
lazy_static = "1.4.0"
2020
product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.4.0" }
2121
rand = "0.8.5"

0 commit comments

Comments
 (0)