@@ -109,10 +109,13 @@ async fn main() -> anyhow::Result<()> {
109109 client : client. clone ( ) ,
110110 product_config : product_config. load ( & PRODUCT_CONFIG_PATHS ) ?,
111111 } ;
112- let spark_event_recorder = Arc :: new ( Recorder :: new ( client. as_kube_client ( ) , Reporter {
113- controller : SPARK_FULL_CONTROLLER_NAME . to_string ( ) ,
114- instance : None ,
115- } ) ) ;
112+ let spark_event_recorder = Arc :: new ( Recorder :: new (
113+ client. as_kube_client ( ) ,
114+ Reporter {
115+ controller : SPARK_FULL_CONTROLLER_NAME . to_string ( ) ,
116+ instance : None ,
117+ } ,
118+ ) ) ;
116119 let app_controller = Controller :: new (
117120 watch_namespace
118121 . get_api :: < DeserializeGuard < crd:: v1alpha1:: SparkApplication > > ( & client) ,
@@ -147,11 +150,13 @@ async fn main() -> anyhow::Result<()> {
147150 } ,
148151 ) ;
149152
150- let pod_driver_event_recorder =
151- Arc :: new ( Recorder :: new ( client. as_kube_client ( ) , Reporter {
153+ let pod_driver_event_recorder = Arc :: new ( Recorder :: new (
154+ client. as_kube_client ( ) ,
155+ Reporter {
152156 controller : POD_DRIVER_FULL_CONTROLLER_NAME . to_string ( ) ,
153157 instance : None ,
154- } ) ) ;
158+ } ,
159+ ) ) ;
155160 let pod_driver_controller = Controller :: new (
156161 watch_namespace. get_api :: < DeserializeGuard < Pod > > ( & client) ,
157162 watcher:: Config :: default ( )
@@ -191,11 +196,13 @@ async fn main() -> anyhow::Result<()> {
191196 client : client. clone ( ) ,
192197 product_config : product_config. load ( & PRODUCT_CONFIG_PATHS ) ?,
193198 } ;
194- let history_event_recorder =
195- Arc :: new ( Recorder :: new ( client. as_kube_client ( ) , Reporter {
199+ let history_event_recorder = Arc :: new ( Recorder :: new (
200+ client. as_kube_client ( ) ,
201+ Reporter {
196202 controller : HISTORY_FULL_CONTROLLER_NAME . to_string ( ) ,
197203 instance : None ,
198- } ) ) ;
204+ } ,
205+ ) ) ;
199206 let history_controller = Controller :: new (
200207 watch_namespace
201208 . get_api :: < DeserializeGuard < crd:: history:: v1alpha1:: SparkHistoryServer > > (
@@ -253,11 +260,13 @@ async fn main() -> anyhow::Result<()> {
253260 client : client. clone ( ) ,
254261 product_config : product_config. load ( & PRODUCT_CONFIG_PATHS ) ?,
255262 } ;
256- let connect_event_recorder =
257- Arc :: new ( Recorder :: new ( client. as_kube_client ( ) , Reporter {
263+ let connect_event_recorder = Arc :: new ( Recorder :: new (
264+ client. as_kube_client ( ) ,
265+ Reporter {
258266 controller : CONNECT_FULL_CONTROLLER_NAME . to_string ( ) ,
259267 instance : None ,
260- } ) ) ;
268+ } ,
269+ ) ) ;
261270 let connect_controller = Controller :: new (
262271 watch_namespace
263272 . get_api :: < DeserializeGuard < connect:: crd:: v1alpha1:: SparkConnectServer > > (
0 commit comments