Skip to content

Commit 69603ca

Browse files
committed
Rename to create_webhook_client_config
1 parent ec5a33a commit 69603ca

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/stackable-webhook/src/webhooks/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub trait Webhook {
5757
///
5858
/// It is used to contact the correct HTTP endpoint, which is determined from the given parameters.
5959
/// (CRD conversions require a similar, but different, client config).
60-
fn get_webhook_client_config(
60+
fn create_webhook_client_config(
6161
options: &WebhookServerOptions,
6262
ca_bundle: ByteString,
6363
http_path: impl Into<String>,

crates/stackable-webhook/src/webhooks/mutating_webhook.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use snafu::{ResultExt, Snafu};
1313
use tracing::instrument;
1414

1515
use super::{Webhook, WebhookError};
16-
use crate::{WebhookServerOptions, webhooks::get_webhook_client_config};
16+
use crate::{WebhookServerOptions, webhooks::create_webhook_client_config};
1717

1818
#[derive(Debug, Snafu)]
1919
pub enum MutatingWebhookError {
@@ -213,7 +213,7 @@ where
213213
for webhook in mutating_webhook_configuration.webhooks.iter_mut().flatten() {
214214
// We know how we can be called (and with what certificate), so we can always set that
215215
webhook.client_config =
216-
get_webhook_client_config(options, new_ca_bundle.to_owned(), self.http_path());
216+
create_webhook_client_config(options, new_ca_bundle.to_owned(), self.http_path());
217217
}
218218

219219
let mwc_api: Api<MutatingWebhookConfiguration> = Api::all(self.client.clone());

0 commit comments

Comments
 (0)