@@ -479,14 +479,23 @@ fn create_env_file(host_location: &str) -> Result<(), std::io::Error> {
479479 let log_length = env:: var ( "LOG_LENGTH" ) . unwrap_or_else ( |_| "500" . to_string ( ) ) ;
480480 let pod_selector_label = env:: var ( "COMP_POD_SELECTOR_LABEL" ) . unwrap_or_default ( ) ;
481481 let timeout = env:: var ( "COMP_TIMEOUT" ) . unwrap_or_else ( |_| "600" . to_string ( ) ) ;
482+
482483 let compression = env:: var ( "COMP_COMPRESSION" )
483484 . unwrap_or_else ( |_| "true" . to_string ( ) )
484485 . to_lowercase ( ) ;
486+
487+ let core_events = env:: var ( "COMP_CORE_EVENTS" )
488+ . unwrap_or_else ( |_| "false" . to_string ( ) )
489+ . to_lowercase ( ) ;
490+
491+ let event_directory = env:: var ( "COMP_CORE_EVENT_DIR" )
492+ . unwrap_or_else ( |_| format ! ( "{}/{}" , host_location, "events" ) )
493+ . to_lowercase ( ) ;
485494 info ! ( "Creating {} file with LOG_LEVEL={}" , destination, loglevel) ;
486495 let mut env_file = File :: create ( destination) ?;
487496 let text = format ! (
488- "LOG_LEVEL={}\n IGNORE_CRIO={}\n CRIO_IMAGE_CMD={}\n USE_CRIO_CONF={}\n FILENAME_TEMPLATE={}\n LOG_LENGTH={}\n POD_SELECTOR_LABEL={}\n TIMEOUT={}\n COMPRESSION={}\n " ,
489- loglevel, ignore_crio, crio_image, use_crio_config, filename_template, log_length, pod_selector_label, timeout, compression
497+ "LOG_LEVEL={}\n IGNORE_CRIO={}\n CRIO_IMAGE_CMD={}\n USE_CRIO_CONF={}\n FILENAME_TEMPLATE={}\n LOG_LENGTH={}\n POD_SELECTOR_LABEL={}\n TIMEOUT={}\n COMPRESSION={}\n CORE_EVENTS={} \n EVENT_DIRECTORY={} \ n " ,
498+ loglevel, ignore_crio, crio_image, use_crio_config, filename_template, log_length, pod_selector_label, timeout, compression, core_events , event_directory
490499 ) ;
491500 info ! ( "Writing composer .env \n {}" , text) ;
492501 env_file. write_all ( text. as_bytes ( ) ) ?;
0 commit comments