diff --git a/CHANGELOG.md b/CHANGELOG.md index fece79bd..990d3d54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ - Use `json` file extension for log files ([#607]). - Fix a bug where changes to ConfigMaps that are referenced in the AirflowCluster spec didn't trigger a reconciliation ([#600]). +- Use headless service for StatefulSets ([#626]). [#600]: https://github.com/stackabletech/airflow-operator/pull/600 [#601]: https://github.com/stackabletech/airflow-operator/pull/601 @@ -39,6 +40,7 @@ [#620]: https://github.com/stackabletech/airflow-operator/pull/620 [#624]: https://github.com/stackabletech/airflow-operator/pull/624 [#625]: https://github.com/stackabletech/airflow-operator/pull/625 +[#626]: https://github.com/stackabletech/airflow-operator/pull/626 ## [25.3.0] - 2025-03-21 diff --git a/rust/operator-binary/src/airflow_controller.rs b/rust/operator-binary/src/airflow_controller.rs index e7154e9a..24ff3d40 100644 --- a/rust/operator-binary/src/airflow_controller.rs +++ b/rust/operator-binary/src/airflow_controller.rs @@ -1161,7 +1161,7 @@ fn build_server_rolegroup_statefulset( match_labels: Some(statefulset_match_labels.into()), ..LabelSelector::default() }, - service_name: rolegroup_ref.object_name(), + service_name: format!("{name}-metrics", name = rolegroup_ref.object_name()), template: pod_template, volume_claim_templates: pvcs, ..StatefulSetSpec::default()