From 142b21237ad67ed9e12fab771f1a33ecff8bae26 Mon Sep 17 00:00:00 2001 From: clux Date: Fri, 25 Oct 2024 19:30:58 +0100 Subject: [PATCH] Fix custom_client_tls example was not building on CI because it needs --all-features Signed-off-by: clux --- examples/custom_client_tls.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/custom_client_tls.rs b/examples/custom_client_tls.rs index 5b271e04f..1ecf3077e 100644 --- a/examples/custom_client_tls.rs +++ b/examples/custom_client_tls.rs @@ -3,7 +3,7 @@ use hyper_util::rt::TokioExecutor; // Must enable `rustls-tls` feature to run this. // Run with `USE_RUSTLS=1` to pick rustls. use k8s_openapi::api::core::v1::Pod; -use tower::ServiceBuilder; +use tower::{BoxError, ServiceBuilder}; use tracing::*; use kube::{client::ConfigExt, Api, Client, Config, ResourceExt}; @@ -21,6 +21,7 @@ async fn main() -> anyhow::Result<()> { let service = ServiceBuilder::new() .layer(config.base_uri_layer()) .option_layer(config.auth_layer()?) + .map_err(BoxError::from) .service(hyper_util::client::legacy::Client::builder(TokioExecutor::new()).build(https)); Client::new(service, config.default_namespace) } else { @@ -28,6 +29,7 @@ async fn main() -> anyhow::Result<()> { let service = ServiceBuilder::new() .layer(config.base_uri_layer()) .option_layer(config.auth_layer()?) + .map_err(BoxError::from) .service(hyper_util::client::legacy::Client::builder(TokioExecutor::new()).build(https)); Client::new(service, config.default_namespace) };