@@ -212,16 +212,6 @@ impl ResolvedFaultTolerantExecutionConfig {
212212 s3_exchange_config. base_directories . join ( "," ) ,
213213 ) ;
214214
215- Self :: insert_if_present (
216- & mut exchange_manager_properties,
217- "exchange.s3.iam-role" ,
218- s3_exchange_config. s3_config . iam_role . as_ref ( ) ,
219- ) ;
220- Self :: insert_if_present (
221- & mut exchange_manager_properties,
222- "exchange.s3.external-id" ,
223- s3_exchange_config. s3_config . external_id . as_ref ( ) ,
224- ) ;
225215 Self :: insert_if_present (
226216 & mut exchange_manager_properties,
227217 "exchange.s3.max-error-retries" ,
@@ -285,7 +275,7 @@ impl ResolvedFaultTolerantExecutionConfig {
285275 match & exchange_config. backend {
286276 ExchangeManagerBackend :: S3 ( s3_config) => {
287277 let resolved_s3_config = config:: s3:: ResolvedS3Config :: from_config (
288- & s3_config. s3_config ,
278+ & s3_config. connection ,
289279 client,
290280 namespace,
291281 )
@@ -339,12 +329,9 @@ mod tests {
339329 use stackable_operator:: shared:: time:: Duration ;
340330
341331 use super :: * ;
342- use crate :: crd:: {
343- fault_tolerant_execution:: {
344- ExchangeManagerConfig , LocalExchangeConfig , QueryRetryConfig , S3ExchangeConfig ,
345- TaskRetryConfig ,
346- } ,
347- s3:: S3Config ,
332+ use crate :: crd:: fault_tolerant_execution:: {
333+ ExchangeManagerConfig , LocalExchangeConfig , QueryRetryConfig , S3ExchangeConfig ,
334+ TaskRetryConfig ,
348335 } ;
349336
350337 #[ tokio:: test]
@@ -481,12 +468,9 @@ mod tests {
481468 base_directories : vec ! [ "s3://my-bucket/exchange" . to_string( ) ] ,
482469 max_error_retries : Some ( 5 ) ,
483470 upload_part_size : Some ( Quantity ( "10Mi" . to_string ( ) ) ) ,
484- s3_config : S3Config { connection : stackable_operator:: crd:: s3:: v1alpha1:: InlineConnectionOrReference :: Reference (
471+ connection : stackable_operator:: crd:: s3:: v1alpha1:: InlineConnectionOrReference :: Reference (
485472 "test-s3-connection" . to_string ( )
486473 ) ,
487- iam_role : Some ( "arn:aws:iam::123456789012:role/TrinoRole" . to_string ( ) ) ,
488- external_id : Some ( "external-id-123" . to_string ( ) ) ,
489- }
490474 } ) ,
491475 } ,
492476 } ) ;
@@ -520,18 +504,6 @@ mod tests {
520504 Some ( & "s3://my-bucket/exchange" . to_string( ) )
521505 ) ;
522506
523- assert_eq ! (
524- fte_config
525- . exchange_manager_properties
526- . get( "exchange.s3.iam-role" ) ,
527- Some ( & "arn:aws:iam::123456789012:role/TrinoRole" . to_string( ) )
528- ) ;
529- assert_eq ! (
530- fte_config
531- . exchange_manager_properties
532- . get( "exchange.s3.external-id" ) ,
533- Some ( & "external-id-123" . to_string( ) )
534- ) ;
535507 assert_eq ! (
536508 fte_config
537509 . exchange_manager_properties
0 commit comments