Skip to content

Commit 9fa71ce

Browse files
bors[bot]nightkr
andauthored
Merge #277
277: Upgrade kube from 0.63.1 to 0.65 r=soenkeliebau a=teozkr ## Description ## Review Checklist - [x] Code contains useful comments - [x] (Integration-)Test cases added (or not applicable) - [x] Documentation added (or not applicable) - [x] Changelog updated (or not applicable) Co-authored-by: Teo Klestrup Röijezon <teo.roijezon@stackable.de>
2 parents b90290e + 9e73c98 commit 9fa71ce

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
6+
### Changed
7+
- BREAKING: kube-rs 0.63.1 -> 0.65.0 ([#277])
8+
- strum 0.22.0 -> 0.23.0 ([#277])
9+
10+
[#277]: https://github.com/stackabletech/operator-rs/pull/277
611

712
## [0.5.0] - 2021-12-09
813

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ either = "1.6.1"
1616
futures = "0.3.17"
1717
json-patch = "0.2.6"
1818
k8s-openapi = { version = "0.13.1", default-features = false, features = ["schemars", "v1_22"] }
19-
kube = { version = "0.63.1", features = ["jsonpatch", "runtime", "derive"] }
19+
kube = { version = "0.65.0", features = ["jsonpatch", "runtime", "derive"] }
2020
lazy_static = "1.4.0"
2121
product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.3.0" }
2222
rand = "0.8.4"
@@ -25,8 +25,8 @@ schemars = "0.8.6"
2525
serde = "1.0.130"
2626
serde_json = "1.0.68"
2727
serde_yaml = "0.8.21"
28-
strum = "0.22.0"
29-
strum_macros = "0.22.0"
28+
strum = "0.23.0"
29+
strum_macros = "0.23.1"
3030
thiserror = "1.0.30"
3131
tokio = { version = "1.12.0", features = ["macros", "rt-multi-thread"] }
3232
tracing = "0.1.29"

src/client.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,9 @@ impl Client {
518518
}
519519

520520
pub async fn create_client(field_manager: Option<String>) -> OperatorResult<Client> {
521-
let kubeconfig: Config = kube::Config::infer().await?;
521+
let kubeconfig: Config = kube::Config::infer()
522+
.await
523+
.map_err(kube::Error::InferConfig)?;
522524
let default_namespace = kubeconfig.default_namespace.clone();
523525
Ok(Client::new(
524526
kube::Client::try_from(kubeconfig)?,

src/controller.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ where
267267
// An object may have been deleted after it was scheduled (but before it was executed). This is typically not an error.
268268
trace!(err = &err as &(dyn std::error::Error + 'static), "ObjectNotFound in store, this is normal and will be retried")
269269
},
270-
Err(err @ kube::runtime::controller::Error::QueueError { source: kube::runtime::watcher::Error::WatchFailed {..}, .. }) => {
271-
// This can happen when we lose the connection to the apiserver or the
270+
Err(err @ kube::runtime::controller::Error::QueueError(kube::runtime::watcher::Error::WatchFailed {..})) => {
271+
// This can happen when we lose the connection to the apiserver or the
272272
// connection gets interrupted for any other reason.
273273
// kube-rs will usually try to restart the watch automatically.
274274
warn!(err = &err as &(dyn std::error::Error + 'static), "controller watch failed, will retry")

0 commit comments

Comments
 (0)