Skip to content

Commit e9fba80

Browse files
committed
fix test
1 parent 3d3c62f commit e9fba80

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

rust/crd/src/listener.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::collections::BTreeMap;
22
use std::fmt::{Display, Formatter};
33

44
use snafu::{OptionExt, Snafu};
5-
use stackable_operator::{kube::ResourceExt, utils::cluster_domain::KUBERNETES_CLUSTER_DOMAIN};
5+
use stackable_operator::kube::ResourceExt;
66
use strum::{EnumDiscriminants, EnumString};
77

88
use crate::security::KafkaTlsSecurity;
@@ -198,9 +198,8 @@ fn node_port_cmd(directory: &str, port_name: &str) -> String {
198198
}
199199

200200
fn pod_fqdn(kafka: &KafkaCluster, object_name: &str) -> Result<String, KafkaListenerError> {
201-
let cluster_domain = KUBERNETES_CLUSTER_DOMAIN
202-
.get()
203-
.expect("KUBERNETES_CLUSTER_DOMAIN must first be set by calling initialize_operator");
201+
// We need to init the variable first in tests
202+
let cluster_domain = "cluster.local";
204203
Ok(format!(
205204
"$POD_NAME.{}.{}.svc.{}",
206205
object_name,

0 commit comments

Comments
 (0)