File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
rust/operator-binary/src/crd Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ use snafu::{OptionExt, Snafu};
7
7
use stackable_operator:: { kube:: ResourceExt , utils:: cluster_info:: KubernetesClusterInfo } ;
8
8
use strum:: { EnumDiscriminants , EnumString } ;
9
9
10
- use crate :: crd:: { security:: KafkaTlsSecurity , v1alpha1, STACKABLE_LISTENER_BROKER_DIR } ;
10
+ use crate :: crd:: {
11
+ security:: KafkaTlsSecurity , v1alpha1, LISTENER_BROKER_VOLUME_NAME ,
12
+ STACKABLE_LISTENER_BROKER_DIR ,
13
+ } ;
11
14
12
15
const LISTENER_LOCAL_ADDRESS : & str = "0.0.0.0" ;
13
16
@@ -263,8 +266,7 @@ pub fn pod_kcat(
263
266
cluster_info : & KubernetesClusterInfo ,
264
267
) -> Result < String , KafkaListenerError > {
265
268
Ok ( format ! (
266
- // TODO where does this prefix come from? Is it safe to hard-code it?
267
- "$POD_NAME-listener-broker.{namespace}.svc.{cluster_domain}" ,
269
+ "$POD_NAME-{LISTENER_BROKER_VOLUME_NAME}.{namespace}.svc.{cluster_domain}" ,
268
270
namespace = kafka. namespace( ) . context( ObjectHasNoNamespaceSnafu ) ?,
269
271
cluster_domain = cluster_info. cluster_domain
270
272
) )
You can’t perform that action at this time.
0 commit comments