From a5c53d5e765cf84e82b7cd8a352569f01f844908 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 05:23:31 +0000 Subject: [PATCH 1/2] fix(deps): update rust kube --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5e9c05f..d4d2df6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,8 +11,8 @@ opt-level = "z" # Optimize for size. lto = true [dependencies] -kube = { version = "0.87.2", default-features = false, features = ["client", "ws", "rustls-tls"] } -k8s-openapi = { version = "0.20.0", default-features = false, features = ["v1_26"] } +kube = { version = "0.88.1", default-features = false, features = ["client", "ws", "rustls-tls"] } +k8s-openapi = { version = "0.21.0", default-features = false, features = ["v1_26"] } anyhow = "1.0.79" thiserror = "1.0.56" futures = "0.3.30" From c6694860849db07862a86889b072047240f6771e Mon Sep 17 00:00:00 2001 From: Nicholas Steicke <67732+narthollis@users.noreply.github.com> Date: Fri, 26 Jan 2024 23:29:35 +1030 Subject: [PATCH 2/2] fix(deps): update rust kube to resolve conflicts with updated versions --- src/main.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6dc4fab..2f378de 100644 --- a/src/main.rs +++ b/src/main.rs @@ -178,20 +178,9 @@ async fn serve( Ok(()) } -const EMPTY_POD_LIST: kube::core::ObjectList = kube::core::ObjectList:: { - metadata: kube::core::ListMeta { - continue_: None, - remaining_item_count: None, - resource_version: None, - self_link: None, - }, - items: vec![], -}; - async fn find_pod(api: &Api, selector: &ListParams) -> anyhow::Result { api.list(selector) - .await - .unwrap_or(EMPTY_POD_LIST) + .await? .items .into_iter() .find(|p| {