@@ -514,23 +514,20 @@ pub async fn reconcile_airflow(
514
514
)
515
515
. context ( LabelBuildSnafu ) ?;
516
516
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 ) ?;
526
524
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
+ } ) ?;
534
531
535
532
let rg_metrics_service = build_rolegroup_metrics_service (
536
533
airflow,
@@ -1158,7 +1155,7 @@ fn build_server_rolegroup_statefulset(
1158
1155
match_labels : Some ( statefulset_match_labels. into ( ) ) ,
1159
1156
..LabelSelector :: default ( )
1160
1157
} ,
1161
- service_name : stateful_set_service_name ( airflow_role , rolegroup_ref) ,
1158
+ service_name : stateful_set_service_name ( rolegroup_ref) ,
1162
1159
template : pod_template,
1163
1160
volume_claim_templates : pvcs,
1164
1161
..StatefulSetSpec :: default ( )
0 commit comments