@@ -89,8 +89,11 @@ fn broker_start_command(
8989
9090 let client_port = kafka_security. client_port ( ) ;
9191
92- // TODO: copy to tmp? mount readwrite folder?
93- // TODO: do "cat /tmp/{properties_file}" ?
92+ // TODO: The properties file from the configmap is copied to the /tmp folder and appended with dynamic properties
93+ // This should be improved:
94+ // - mount emptyDir as readWriteConfig
95+ // - use config-utils for proper replacements?
96+ // - should we print the adapted properties file at startup?
9497 if kafka. is_controller_configured ( ) {
9598 formatdoc ! { "
9699 export REPLICA_ID=$(echo \" $POD_NAME\" | grep -oE '[0-9]+$')
@@ -143,7 +146,11 @@ pub fn controller_kafka_container_command(
143146) -> String {
144147 let client_port = kafka_security. client_port ( ) ;
145148
146- // TODO: copy to tmp? mount readwrite folder?
149+ // TODO: The properties file from the configmap is copied to the /tmp folder and appended with dynamic properties
150+ // This should be improved:
151+ // - mount emptyDir as readWriteConfig
152+ // - use config-utils for proper replacements?
153+ // - should we print the adapted properties file at startup?
147154 formatdoc ! { "
148155 {COMMON_BASH_TRAP_FUNCTIONS}
149156 {remove_vector_shutdown_file_command}
@@ -165,16 +172,24 @@ pub fn controller_kafka_container_command(
165172 wait_for_termination $!
166173 {create_vector_shutdown_file_command}
167174 " ,
168- remove_vector_shutdown_file_command = remove_vector_shutdown_file_command( STACKABLE_LOG_DIR ) ,
169- config_dir = STACKABLE_CONFIG_DIR ,
170- properties_file = CONTROLLER_PROPERTIES_FILE ,
171- bootstrap_servers = to_bootstrap_servers( & controller_descriptors, client_port) ,
172- listeners = to_listeners( client_port) ,
173- listener_security_protocol_map = to_listener_security_protocol_map( kafka_listeners) ,
174- initial_controller_command = initial_controllers_command( & controller_descriptors, product_version, client_port) ,
175- controller_quorum_voters = to_quorum_voters( & controller_descriptors, client_port) ,
176- create_vector_shutdown_file_command = create_vector_shutdown_file_command( STACKABLE_LOG_DIR )
177- }
175+ remove_vector_shutdown_file_command = remove_vector_shutdown_file_command( STACKABLE_LOG_DIR ) ,
176+ config_dir = STACKABLE_CONFIG_DIR ,
177+ properties_file = CONTROLLER_PROPERTIES_FILE ,
178+ bootstrap_servers = to_bootstrap_servers( & controller_descriptors, client_port) ,
179+ listeners = to_listeners( client_port) ,
180+ listener_security_protocol_map = to_listener_security_protocol_map( kafka_listeners) ,
181+ initial_controller_command = initial_controllers_command( & controller_descriptors, product_version, client_port) ,
182+ controller_quorum_voters = to_quorum_voters( & controller_descriptors, client_port) ,
183+ create_vector_shutdown_file_command = create_vector_shutdown_file_command( STACKABLE_LOG_DIR )
184+
185+
186+ controller. quorum. bootstrap. servers=test-kafka-controller-default -0 . test-kafka-controller-default . kuttl-test-cute-ghoul. svc. cluster. local: 9093 , test-kafka-controller-default -1 . test-kafka-controller-default . kuttl-test-cute-ghoul. svc. cluster. local: 9093 , test-kafka-controller-default -2 . test-kafka-controller-default . kuttl-test-cute-ghoul. svc. cluster. local: 9093
187+ listeners=CONTROLLER : //test-kafka-controller-default-1.test-kafka-controller-default.kuttl-test-cute-ghoul.svc.cluster.local:9093
188+ listener. security. protocol. map=CONTROLLER : SSL
189+ controller. quorum. voters=2110489703 @test-kafka-controller-default -0 . test-kafka-controller-default . kuttl-test-cute-ghoul. svc. cluster. local: 9093 , 2110489704 @test-kafka-controller-default -1 . test-kafka-controller-default . kuttl-test-cute-ghoul. svc. cluster. local: 9093 , 2110489705 @test-kafka-controller-default -2 . test-kafka-controller-default . kuttl-test-cute-ghoul. svc. cluster. local: 9093
190+
191+
192+ }
178193}
179194
180195fn to_listeners ( port : u16 ) -> String {
@@ -199,6 +214,7 @@ fn to_initial_controllers(controller_descriptors: &[KafkaPodDescriptor], port: u
199214 . join ( "," )
200215}
201216
217+ // TODO: This can be removed once 3.7.2 is removed. Used in command.rs.
202218fn to_quorum_voters ( controller_descriptors : & [ KafkaPodDescriptor ] , port : u16 ) -> String {
203219 controller_descriptors
204220 . iter ( )
0 commit comments