@@ -11,7 +11,8 @@ use crate::{
1111 catalog:: config:: CatalogConfig ,
1212 controller:: { STACKABLE_LOG_CONFIG_DIR , STACKABLE_LOG_DIR } ,
1313 crd:: {
14- CONFIG_DIR_NAME , Container , LOG_PROPERTIES , RW_CONFIG_DIR_NAME , STACKABLE_CLIENT_TLS_DIR ,
14+ CONFIG_DIR_NAME , Container , EXCHANGE_MANAGER_PROPERTIES , LOG_PROPERTIES ,
15+ RW_CONFIG_DIR_NAME , SPOOLING_MANAGER_PROPERTIES , STACKABLE_CLIENT_TLS_DIR ,
1516 STACKABLE_INTERNAL_TLS_DIR , STACKABLE_MOUNT_INTERNAL_TLS_DIR ,
1617 STACKABLE_MOUNT_SERVER_TLS_DIR , STACKABLE_SERVER_TLS_DIR , STACKABLE_TLS_STORE_PASSWORD ,
1718 SYSTEM_TRUST_STORE , SYSTEM_TRUST_STORE_PASSWORD , TrinoRole , client_protocol,
@@ -97,8 +98,6 @@ pub fn container_prepare_args(
9798pub fn container_trino_args (
9899 authentication_config : & TrinoAuthenticationConfig ,
99100 catalogs : & [ CatalogConfig ] ,
100- resolved_fte_config : & Option < ResolvedFaultTolerantExecutionConfig > ,
101- resolved_spooling_config : & Option < client_protocol:: ResolvedClientProtocolConfig > ,
102101) -> Vec < String > {
103102 let mut args = vec ! [
104103 // copy config files to a writeable empty folder
@@ -126,19 +125,17 @@ pub fn container_trino_args(
126125 }
127126 } ) ;
128127
129- // Add fault tolerant execution environment variables from files
130- if let Some ( resolved_fte) = resolved_fte_config {
131- for ( env_name, file) in & resolved_fte. load_env_from_files {
132- args. push ( format ! ( "export {env_name}=\" $(cat {file})\" " ) ) ;
133- }
134- }
128+ // Resolve credentials for fault tolerant execution exchange manager if needed
129+ args. push ( format ! (
130+ "test -f {rw_exchange_manager_config_file} && config-utils template {rw_exchange_manager_config_file}" ,
131+ rw_exchange_manager_config_file = format!( "{RW_CONFIG_DIR_NAME}/{EXCHANGE_MANAGER_PROPERTIES}" )
132+ ) ) ;
135133
136- // Add client spooling environment variables from files
137- if let Some ( resolved_spooling) = resolved_spooling_config {
138- for ( env_name, file) in & resolved_spooling. load_env_from_files {
139- args. push ( format ! ( "export {env_name}=\" $(cat {file})\" " ) ) ;
140- }
141- }
134+ // Resolve credentials for spooling manager if needed
135+ args. push ( format ! (
136+ "test -f {rw_spooling_config_file} && config-utils template {rw_spooling_config_file}" ,
137+ rw_spooling_config_file = format!( "{RW_CONFIG_DIR_NAME}/{SPOOLING_MANAGER_PROPERTIES}" )
138+ ) ) ;
142139
143140 args. push ( "set -x" . to_string ( ) ) ;
144141
0 commit comments