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" 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| {