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::{
2
2
cli:: OperatorEnvironmentOptions ,
3
3
kube:: Client ,
4
4
webhook:: {
5
- constants:: CONVERSION_WEBHOOK_HTTPS_PORT ,
5
+ constants:: DEFAULT_SOCKET_ADDRESS ,
6
6
servers:: { ConversionWebhookOptions , ConversionWebhookServer } ,
7
7
} ,
8
8
} ;
@@ -29,9 +29,7 @@ pub async fn conversion_webhook(
29
29
] ;
30
30
31
31
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 ,
35
33
field_manager : OPERATOR_NAME . to_owned ( ) ,
36
34
namespace : operator_environment. operator_namespace ,
37
35
service_name : operator_environment. operator_service_name ,
You can’t perform that action at this time.
0 commit comments