@@ -156,6 +156,7 @@ def __init__(
156156 default_user_sid = None ,
157157 pg_compatible_expirement = False ,
158158 generic_connector_config = None , # typing.Optional[TGenericConnectorConfig]
159+ kafka_api_port = None ,
159160 metadata_section = None ,
160161 ):
161162 if extra_feature_flags is None :
@@ -178,7 +179,6 @@ def __init__(
178179 self ._pdisks_info = []
179180 if self .__grpc_ssl_enable :
180181 self .__grpc_tls_data_path = grpc_tls_data_path or yatest .common .output_path ()
181- cert_pem , key_pem = tls_tools .generate_selfsigned_cert (_get_fqdn ())
182182 self .__grpc_tls_ca = cert_pem
183183 self .__grpc_tls_key = key_pem
184184 self .__grpc_tls_cert = cert_pem
@@ -431,6 +431,14 @@ def __init__(
431431 self .yaml_config ["feature_flags" ]["enable_external_data_sources" ] = True
432432 self .yaml_config ["feature_flags" ]["enable_script_execution_operations" ] = True
433433
434+ print (f"rekby-debug: kafka port for config: { kafka_api_port } " )
435+ if kafka_api_port is not None :
436+ kafka_proxy_config = dict ()
437+ kafka_proxy_config ["enable_kafka_proxy" ] = True
438+ kafka_proxy_config ["listening_port" ] = kafka_api_port
439+
440+ self .yaml_config ["kafka_proxy_config" ] = kafka_proxy_config
441+
434442 self .full_config = dict ()
435443 if metadata_section :
436444 self .full_config ["metadata" ] = metadata_section
0 commit comments