Skip to content

Commit d1c9ead

Browse files
committed
Add CONVERSION_WEBHOOK_HTTPS_PORT
1 parent c538fc4 commit d1c9ead

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

crates/stackable-webhook/src/constants.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ use std::net::{IpAddr, Ipv4Addr, SocketAddr};
55
/// The default HTTPS port `8443`
66
pub const DEFAULT_HTTPS_PORT: u16 = 8443;
77

8+
// The HTTPS port the conversion webhook runs at
9+
pub const CONVERSION_WEBHOOK_HTTPS_PORT: u16 = DEFAULT_HTTPS_PORT;
10+
811
/// The default IP address [`Ipv4Addr::UNSPECIFIED`] (`0.0.0.0`) the webhook server binds to,
912
/// which represents binding on all network addresses.
1013
//

crates/stackable-webhook/src/servers/conversion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use x509_cert::{
2626
};
2727

2828
use crate::{
29-
WebhookError, WebhookHandler, WebhookServer, constants::DEFAULT_HTTPS_PORT,
29+
WebhookError, WebhookHandler, WebhookServer, constants::CONVERSION_WEBHOOK_HTTPS_PORT,
3030
options::WebhookOptions,
3131
};
3232

@@ -316,7 +316,7 @@ impl ConversionWebhookServer {
316316
name: operator_service_name.to_owned(),
317317
namespace: operator_namespace.to_owned(),
318318
path: Some(format!("/convert/{crd_name}")),
319-
port: Some(DEFAULT_HTTPS_PORT.into()),
319+
port: Some(CONVERSION_WEBHOOK_HTTPS_PORT.into()),
320320
}),
321321
ca_bundle: Some(ByteString(ca_bundle.as_bytes().to_vec())),
322322
url: None,

0 commit comments

Comments
 (0)