Skip to content

Commit 0b6737b

Browse files
committed
merge main
2 parents c00ab43 + 25b84b6 commit 0b6737b

3 files changed

Lines changed: 20 additions & 20 deletions

File tree

Cargo.nix

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resolver = "2"
66
version = "0.0.0-dev"
77
authors = ["Stackable GmbH <info@stackable.tech>"]
88
license = "OSL-3.0"
9-
edition = "2021"
9+
edition = "2024"
1010
repository = "https://github.com/stackabletech/airflow-operator"
1111

1212
[workspace.dependencies]

rust/operator-binary/src/airflow_controller.rs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -442,25 +442,25 @@ pub async fn reconcile_airflow(
442442
.context(FailedToCreatePdbSnafu)?;
443443
}
444444

445-
if let Some(listener_class) = &role_config.listener_class {
446-
if let Some(listener_group_name) = &role_config.group_listener_name {
447-
let rg_group_listener = build_group_listener(
445+
if let Some(listener_class) = &role_config.listener_class
446+
&& let Some(listener_group_name) = &role_config.group_listener_name
447+
{
448+
let rg_group_listener = build_group_listener(
449+
airflow,
450+
build_recommended_labels(
448451
airflow,
449-
build_recommended_labels(
450-
airflow,
451-
AIRFLOW_CONTROLLER_NAME,
452-
&validated_cluster.image.app_version_label_value,
453-
&role_name,
454-
"none",
455-
),
456-
listener_class.to_string(),
457-
listener_group_name.clone(),
458-
)?;
459-
cluster_resources
460-
.add(client, rg_group_listener)
461-
.await
462-
.context(ApplyGroupListenerSnafu)?;
463-
}
452+
AIRFLOW_CONTROLLER_NAME,
453+
&validated_cluster.image.app_version_label_value,
454+
&role_name,
455+
"none",
456+
),
457+
listener_class.to_string(),
458+
listener_group_name.clone(),
459+
)?;
460+
cluster_resources
461+
.add(client, rg_group_listener)
462+
.await
463+
.context(ApplyGroupListenerSnafu)?;
464464
}
465465
}
466466

0 commit comments

Comments
 (0)