File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use stackable_operator::{
1717 shared:: yaml:: SerializeOptions ,
1818 telemetry:: Tracing ,
1919} ;
20- use webhook:: create_webhook ;
20+ use webhook:: create_webhook_server ;
2121
2222mod restart_controller;
2323mod utils;
@@ -112,21 +112,21 @@ async fn main() -> anyhow::Result<()> {
112112 let pod_restart_controller =
113113 restart_controller:: pod:: start ( & client, & watch_namespace) . map ( anyhow:: Ok ) ;
114114
115- let webhook = create_webhook (
115+ let webhook_server = create_webhook_server (
116116 ctx,
117117 & operator_environment,
118118 disable_restarter_mutating_webhook,
119119 client. as_kube_client ( ) ,
120120 )
121121 . await ?;
122- let webhook = webhook
122+ let webhook_server = webhook_server
123123 . run ( )
124124 . map_err ( |err| anyhow ! ( err) . context ( "failed to run webhook" ) ) ;
125125
126126 futures:: try_join!(
127127 sts_restart_controller,
128128 pod_restart_controller,
129- webhook ,
129+ webhook_server ,
130130 eos_checker,
131131 ) ?;
132132 }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ pub enum Error {
2121 CreateWebhookServer { source : WebhookError } ,
2222}
2323
24- pub async fn create_webhook < ' a > (
24+ pub async fn create_webhook_server < ' a > (
2525 ctx : Arc < Ctx > ,
2626 operator_environment : & ' a OperatorEnvironmentOptions ,
2727 disable_restarter_mutating_webhook : bool ,
You can’t perform that action at this time.
0 commit comments