Skip to content

Commit d4dc4fd

Browse files
committed
Rename function
1 parent 3f29772 commit d4dc4fd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rust/operator-binary/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

2222
mod restart_controller;
2323
mod 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
}

rust/operator-binary/src/webhook/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)