From ee1ad35980d1b90d57fdd6d4b4a4c0d18953c22b Mon Sep 17 00:00:00 2001 From: Andrew Kenworthy Date: Fri, 9 May 2025 13:05:55 +0200 Subject: [PATCH 1/2] use correct service for sts --- rust/operator-binary/src/airflow_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() From 0b3350df0991fff546241b3319fa99a54deec573 Mon Sep 17 00:00:00 2001 From: Andrew Kenworthy Date: Fri, 9 May 2025 13:14:27 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) 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