Skip to content

Commit 92b0174

Browse files
committed
update docs
1 parent d1c9ead commit 92b0174

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ impl ConversionWebhookServer {
113113
/// use clap::Parser;
114114
/// use stackable_webhook::{
115115
/// servers::{ConversionWebhookServer, ConversionWebhookOptions},
116+
/// constants::CONVERSION_WEBHOOK_HTTPS_PORT,
116117
/// WebhookOptions
117118
/// };
118119
/// use stackable_operator::{
@@ -136,7 +137,9 @@ impl ConversionWebhookServer {
136137
/// ];
137138
///
138139
/// let options = ConversionWebhookOptions {
139-
/// socket_addr: "127.0.0.1:8443".parse().expect("static IP is always valid"),
140+
/// socket_addr: format!("127.0.0.1:{CONVERSION_WEBHOOK_HTTPS_PORT}")
141+
/// .parse()
142+
/// .expect("static address is always valid"),
140143
/// field_manager: OPERATOR_NAME.to_owned(),
141144
/// namespace: operator_environment.operator_namespace,
142145
/// service_name: operator_environment.operator_service_name,

0 commit comments

Comments
 (0)