@@ -514,23 +514,20 @@ pub async fn reconcile_airflow(
514514 )
515515 . context ( LabelBuildSnafu ) ?;
516516
517- // Only apply headless service for something exposing an HTTP port
518- if airflow_role. get_http_port ( ) . is_some ( ) {
519- let rg_headless_service = build_rolegroup_headless_service (
520- airflow,
521- & rolegroup,
522- role_group_service_recommended_labels. clone ( ) ,
523- role_group_service_selector. clone ( ) . into ( ) ,
524- )
525- . context ( ServiceConfigurationSnafu ) ?;
517+ let rg_headless_service = build_rolegroup_headless_service (
518+ airflow,
519+ & rolegroup,
520+ role_group_service_recommended_labels. clone ( ) ,
521+ role_group_service_selector. clone ( ) . into ( ) ,
522+ )
523+ . context ( ServiceConfigurationSnafu ) ?;
526524
527- cluster_resources
528- . add ( client, rg_headless_service)
529- . await
530- . context ( ApplyRoleGroupServiceSnafu {
531- rolegroup : rolegroup. clone ( ) ,
532- } ) ?;
533- }
525+ cluster_resources
526+ . add ( client, rg_headless_service)
527+ . await
528+ . context ( ApplyRoleGroupServiceSnafu {
529+ rolegroup : rolegroup. clone ( ) ,
530+ } ) ?;
534531
535532 let rg_metrics_service = build_rolegroup_metrics_service (
536533 airflow,
@@ -1158,7 +1155,7 @@ fn build_server_rolegroup_statefulset(
11581155 match_labels : Some ( statefulset_match_labels. into ( ) ) ,
11591156 ..LabelSelector :: default ( )
11601157 } ,
1161- service_name : stateful_set_service_name ( airflow_role , rolegroup_ref) ,
1158+ service_name : stateful_set_service_name ( rolegroup_ref) ,
11621159 template : pod_template,
11631160 volume_claim_templates : pvcs,
11641161 ..StatefulSetSpec :: default ( )
0 commit comments