File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use std::collections::BTreeMap;
22use std:: fmt:: { Display , Formatter } ;
33
44use snafu:: { OptionExt , Snafu } ;
5- use stackable_operator:: { kube:: ResourceExt , utils :: cluster_domain :: KUBERNETES_CLUSTER_DOMAIN } ;
5+ use stackable_operator:: kube:: ResourceExt ;
66use strum:: { EnumDiscriminants , EnumString } ;
77
88use crate :: security:: KafkaTlsSecurity ;
@@ -198,9 +198,8 @@ fn node_port_cmd(directory: &str, port_name: &str) -> String {
198198}
199199
200200fn 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,
You can’t perform that action at this time.
0 commit comments