Skip to content

Commit 2daad12

Browse files
committed
update discovery cm
1 parent 3fda7f0 commit 2daad12

File tree

1 file changed

+3
-3
lines changed
  • rust/operator-binary/src/crd

1 file changed

+3
-3
lines changed

rust/operator-binary/src/crd/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ impl v1alpha1::DruidCluster {
468468

469469
/// The name of the role-level load-balanced Kubernetes `Service`
470470
pub fn role_service_name(&self, role: &DruidRole) -> Option<String> {
471-
Some(format!("{}-{}", self.metadata.name.clone()?, role))
471+
Some(format!("{}-{}-metrics", self.metadata.name.clone()?, role))
472472
}
473473

474474
/// The fully-qualified domain name of the role-level load-balanced Kubernetes `Service`
@@ -1668,12 +1668,12 @@ mod tests {
16681668

16691669
assert_eq!(
16701670
cluster.role_service_name(&DruidRole::Router),
1671-
Some("testcluster-router".to_string())
1671+
Some("testcluster-router-metrics".to_string())
16721672
);
16731673

16741674
assert_eq!(
16751675
cluster.role_service_fqdn(&DruidRole::Router, &dummy_cluster_info),
1676-
Some("testcluster-router.default.svc.cluster.local".to_string())
1676+
Some("testcluster-router-metrics.default.svc.cluster.local".to_string())
16771677
)
16781678
}
16791679

0 commit comments

Comments
 (0)