Skip to content

Commit 69bda89

Browse files
committed
fix: Use the applied listener to build the discover config map
Note: This is because it relies on information in the status field
1 parent 0d6527a commit 69bda89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/operator-binary/src/zk_controller.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ pub async fn reconcile_zk(
492492

493493
let listener = build_role_listener(zk, &zk_role, &resolved_product_image, &zookeeper_security)
494494
.context(ListenerConfigurationSnafu)?;
495-
cluster_resources
496-
.add(client, listener.clone())
495+
let applied_listener = cluster_resources
496+
.add(client, listener)
497497
.await
498498
.context(ApplyGroupListenerSnafu)?;
499499

@@ -504,7 +504,7 @@ pub async fn reconcile_zk(
504504
zk,
505505
zk,
506506
ZK_CONTROLLER_NAME,
507-
listener,
507+
applied_listener,
508508
None,
509509
&resolved_product_image,
510510
&zookeeper_security,

0 commit comments

Comments
 (0)