Skip to content

fix: Use correct service for StatefulSet #626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion rust/operator-binary/src/airflow_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down