Skip to content

Commit 6154d03

Browse files
committed
fix: format change due to merge moved pdbs in a listener dependency an was never deployed for workers.
1 parent 6865a09 commit 6154d03

1 file changed

Lines changed: 27 additions & 27 deletions

File tree

rust/operator-binary/src/controller.rs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -467,36 +467,36 @@ pub async fn reconcile_trino(
467467
);
468468
}
469469

470-
if let Some(listener_class) = trino_role.listener_class_name(trino) {
471-
if let Some(listener_group_name) = group_listener_name(trino, trino_role) {
472-
let role_group_listener = build_group_listener(
470+
if let Some(listener_class) = trino_role.listener_class_name(trino)
471+
&& let Some(listener_group_name) = group_listener_name(trino, trino_role)
472+
{
473+
let role_group_listener = build_group_listener(
474+
trino,
475+
build_recommended_labels(
473476
trino,
474-
build_recommended_labels(
475-
trino,
476-
&validated_cluster.image.app_version_label_value,
477-
&trino_role.to_string(),
478-
"none",
479-
),
480-
listener_class.to_string(),
481-
listener_group_name,
482-
)
483-
.context(ListenerConfigurationSnafu)?;
477+
&validated_cluster.image.app_version_label_value,
478+
&trino_role.to_string(),
479+
"none",
480+
),
481+
listener_class.to_string(),
482+
listener_group_name,
483+
)
484+
.context(ListenerConfigurationSnafu)?;
484485

485-
cluster_resources
486-
.add(client, role_group_listener)
487-
.await
488-
.context(ApplyGroupListenerSnafu)?;
489-
}
486+
cluster_resources
487+
.add(client, role_group_listener)
488+
.await
489+
.context(ApplyGroupListenerSnafu)?;
490+
}
490491

491-
let role_config = trino.generic_role_config(trino_role);
492-
if let Some(GenericRoleConfig {
493-
pod_disruption_budget: pdb,
494-
}) = role_config
495-
{
496-
add_pdbs(pdb, trino, trino_role, client, &mut cluster_resources)
497-
.await
498-
.context(FailedToCreatePdbSnafu)?;
499-
}
492+
let role_config = trino.generic_role_config(trino_role);
493+
if let Some(GenericRoleConfig {
494+
pod_disruption_budget: pdb,
495+
}) = role_config
496+
{
497+
add_pdbs(pdb, trino, trino_role, client, &mut cluster_resources)
498+
.await
499+
.context(FailedToCreatePdbSnafu)?;
500500
}
501501
}
502502

0 commit comments

Comments
 (0)