@@ -467,36 +467,36 @@ pub async fn reconcile_trino(
467467 ) ;
468468 }
469469
470- if let Some ( listener_class) = trino_role. listener_class_name ( trino) {
471- if let Some ( listener_group_name) = group_listener_name ( trino, trino_role) {
472- let role_group_listener = build_group_listener (
470+ if let Some ( listener_class) = trino_role. listener_class_name ( trino)
471+ && let Some ( listener_group_name) = group_listener_name ( trino, trino_role)
472+ {
473+ let role_group_listener = build_group_listener (
474+ trino,
475+ build_recommended_labels (
473476 trino,
474- build_recommended_labels (
475- trino,
476- & validated_cluster. image . app_version_label_value ,
477- & trino_role. to_string ( ) ,
478- "none" ,
479- ) ,
480- listener_class. to_string ( ) ,
481- listener_group_name,
482- )
483- . context ( ListenerConfigurationSnafu ) ?;
477+ & validated_cluster. image . app_version_label_value ,
478+ & trino_role. to_string ( ) ,
479+ "none" ,
480+ ) ,
481+ listener_class. to_string ( ) ,
482+ listener_group_name,
483+ )
484+ . context ( ListenerConfigurationSnafu ) ?;
484485
485- cluster_resources
486- . add ( client, role_group_listener)
487- . await
488- . context ( ApplyGroupListenerSnafu ) ?;
489- }
486+ cluster_resources
487+ . add ( client, role_group_listener)
488+ . await
489+ . context ( ApplyGroupListenerSnafu ) ?;
490+ }
490491
491- let role_config = trino. generic_role_config ( trino_role) ;
492- if let Some ( GenericRoleConfig {
493- pod_disruption_budget : pdb,
494- } ) = role_config
495- {
496- add_pdbs ( pdb, trino, trino_role, client, & mut cluster_resources)
497- . await
498- . context ( FailedToCreatePdbSnafu ) ?;
499- }
492+ let role_config = trino. generic_role_config ( trino_role) ;
493+ if let Some ( GenericRoleConfig {
494+ pod_disruption_budget : pdb,
495+ } ) = role_config
496+ {
497+ add_pdbs ( pdb, trino, trino_role, client, & mut cluster_resources)
498+ . await
499+ . context ( FailedToCreatePdbSnafu ) ?;
500500 }
501501 }
502502
0 commit comments