Skip to content

Commit a56267c

Browse files
Separate Kubernetes client into a client part and an API part
1 parent c96d6ba commit a56267c

File tree

9 files changed

+235
-153
lines changed

9 files changed

+235
-153
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@ All notable changes to this project will be documented in this file.
88

99
- Extended `ClusterResource` with `Secret`, `ServiceAccount` and `RoleBinding` ([#485]).
1010

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

1328
## [0.25.2] - 2022-09-27

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)