@@ -6,7 +6,6 @@ use stackable_operator::{
66 kube:: Client ,
77 webhook:: { WebhookServer , WebhookServerError , WebhookServerOptions , webhooks:: Webhook } ,
88} ;
9- use tokio:: sync:: oneshot;
109
1110use crate :: restart_controller:: statefulset:: Ctx ;
1211
@@ -25,7 +24,7 @@ pub async fn create_webhook_server(
2524 disable_restarter_mutating_webhook : bool ,
2625 disable_crd_maintenance : bool ,
2726 client : Client ,
28- ) -> Result < ( WebhookServer , oneshot :: Receiver < ( ) > ) , Error > {
27+ ) -> Result < WebhookServer , Error > {
2928 let mut webhooks: Vec < Box < dyn Webhook > > = vec ! [ ] ;
3029
3130 if let Some ( webhook) = restarter_mutate_sts:: create_webhook (
@@ -38,7 +37,7 @@ pub async fn create_webhook_server(
3837
3938 // TODO (@Techassi): The conversion webhook should also allow to be disabled, rework the
4039 // granularity of these options.
41- let ( webhook, initial_reconcile_rx ) =
40+ let ( webhook, _initial_reconcile_rx ) =
4241 conversion:: create_webhook ( disable_crd_maintenance, client) ;
4342 webhooks. push ( webhook) ;
4443
@@ -48,9 +47,7 @@ pub async fn create_webhook_server(
4847 webhook_service_name : operator_environment. operator_service_name . to_owned ( ) ,
4948 } ;
5049
51- let webhook_server = WebhookServer :: new ( webhooks, webhook_options)
50+ WebhookServer :: new ( webhooks, webhook_options)
5251 . await
53- . context ( CreateWebhookServerSnafu ) ?;
54-
55- Ok ( ( webhook_server, initial_reconcile_rx) )
52+ . context ( CreateWebhookServerSnafu )
5653}
0 commit comments