File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -986,10 +986,14 @@ impl HdfsPodRef {
986986 pub fn fqdn ( & self ) -> Cow < str > {
987987 self . fqdn_override . as_deref ( ) . map_or_else (
988988 || {
989+ let cluster_domain = KUBERNETES_CLUSTER_DOMAIN . get ( ) . expect (
990+ "KUBERNETES_CLUSTER_DOMAIN must first be set by calling initialize_operator" ,
991+ ) ;
989992 Cow :: Owned ( format ! (
990- "{}.{}.{}.svc.{}" ,
991- self . pod_name, self . role_group_service_name, self . namespace,
992- KUBERNETES_CLUSTER_DOMAIN . get( ) . expect( "KUBERNETES_CLUSTER_DOMAIN must first be set by calling initialize_operator" ) ,
993+ "{pod_name}.{role_group_service_name}.{namespace}.svc.{cluster_domain}" ,
994+ pod_name = self . pod_name,
995+ role_group_service_name = self . role_group_service_name,
996+ namespace = self . namespace,
993997 ) )
994998 } ,
995999 Cow :: Borrowed ,
You can’t perform that action at this time.
0 commit comments