Skip to content

Separate Kubernetes client into a client part and an API part #481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ All notable changes to this project will be documented in this file.

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

### Changed

- BREAKING: Kubernetes client separated into a client part and an API part. This
follows now the same pattern as in kube-rs and was necessary because kube-rs
0.75.0 constrains the Resource trait by a scope (see
"https://github.com/kube-rs/kube/pull/956"). For instance,
`client.get::<ConfigMap>(configmap_name, namespace)` must be migrated to
`client.get_namespaced_api::<ConfigMap>(namespace).get(configmap_name)`
([#481]).
- Check added that `ClusterResources` are in the namespace of the
cluster ([#481]).
- k8s-openapi 0.15.0 -> 0.16.0 ([#481])
- kube-rs 0.74.0 -> 0.75.0 ([#481])

[#481]: https://github.com/stackabletech/operator-rs/pull/481
[#485]: https://github.com/stackabletech/operator-rs/pull/485

## [0.25.2] - 2022-09-27
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const_format = "0.2.26"
either = "1.8.0"
futures = "0.3.23"
json-patch = "0.2.6"
k8s-openapi = { version = "0.15.0", default-features = false, features = ["schemars", "v1_24"] }
kube = { version = "0.74.0", features = ["jsonpatch", "runtime", "derive"] }
k8s-openapi = { version = "0.16.0", default-features = false, features = ["schemars", "v1_24"] }
kube = { version = "0.75.0", features = ["jsonpatch", "runtime", "derive"] }
lazy_static = "1.4.0"
product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.4.0" }
rand = "0.8.5"
Expand Down
Loading