@@ -227,7 +227,7 @@ impl ContainerConfig {
227227 ) -> Result < ( ) , Error > {
228228 // HDFS main container
229229 let main_container_config = Self :: from ( * role) ;
230- let object_name = & rolegroup_ref. object_name ( ) ;
230+ let object_name = rolegroup_ref. object_name ( ) ;
231231
232232 pb. add_volumes ( main_container_config. volumes ( merged_config, & object_name, labels) ?)
233233 . context ( AddVolumeSnafu ) ?;
@@ -323,15 +323,15 @@ impl ContainerConfig {
323323 let zkfc_container_config = Self :: try_from ( NameNodeContainer :: Zkfc . to_string ( ) ) ?;
324324 pb. add_volumes ( zkfc_container_config. volumes (
325325 merged_config,
326- object_name,
326+ & object_name,
327327 labels,
328328 ) ?)
329329 . context ( AddVolumeSnafu ) ?;
330330 pb. add_container ( zkfc_container_config. main_container (
331331 hdfs,
332332 cluster_info,
333333 role,
334- & rolegroup_ref,
334+ rolegroup_ref,
335335 resolved_product_image,
336336 zk_config_map_name,
337337 env_overrides,
@@ -344,7 +344,7 @@ impl ContainerConfig {
344344 Self :: try_from ( NameNodeContainer :: FormatNameNodes . to_string ( ) ) ?;
345345 pb. add_volumes ( format_namenodes_container_config. volumes (
346346 merged_config,
347- object_name,
347+ & object_name,
348348 labels,
349349 ) ?)
350350 . context ( AddVolumeSnafu ) ?;
@@ -366,7 +366,7 @@ impl ContainerConfig {
366366 Self :: try_from ( NameNodeContainer :: FormatZooKeeper . to_string ( ) ) ?;
367367 pb. add_volumes ( format_zookeeper_container_config. volumes (
368368 merged_config,
369- object_name,
369+ & object_name,
370370 labels,
371371 ) ?)
372372 . context ( AddVolumeSnafu ) ?;
@@ -389,7 +389,7 @@ impl ContainerConfig {
389389 Self :: try_from ( DataNodeContainer :: WaitForNameNodes . to_string ( ) ) ?;
390390 pb. add_volumes ( wait_for_namenodes_container_config. volumes (
391391 merged_config,
392- object_name,
392+ & object_name,
393393 labels,
394394 ) ?)
395395 . context ( AddVolumeSnafu ) ?;
0 commit comments