File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
rust/operator-binary/src/webhooks Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use stackable_operator::{
22 cli:: OperatorEnvironmentOptions ,
33 kube:: Client ,
44 webhook:: {
5- constants:: CONVERSION_WEBHOOK_HTTPS_PORT ,
5+ constants:: DEFAULT_SOCKET_ADDRESS ,
66 servers:: { ConversionWebhookOptions , ConversionWebhookServer } ,
77 } ,
88} ;
@@ -29,9 +29,7 @@ pub async fn conversion_webhook(
2929 ] ;
3030
3131 let options = ConversionWebhookOptions {
32- socket_addr : format ! ( "0.0.0.0:{CONVERSION_WEBHOOK_HTTPS_PORT}" )
33- . parse ( )
34- . expect ( "static address is always valid" ) ,
32+ socket_addr : DEFAULT_SOCKET_ADDRESS ,
3533 field_manager : OPERATOR_NAME . to_owned ( ) ,
3634 namespace : operator_environment. operator_namespace ,
3735 service_name : operator_environment. operator_service_name ,
You can’t perform that action at this time.
0 commit comments