@@ -60,7 +60,7 @@ use stackable_operator::{
6060 statefulset:: StatefulSetConditionBuilder ,
6161 } ,
6262 time:: Duration ,
63- utils:: COMMON_BASH_TRAP_FUNCTIONS ,
63+ utils:: { cluster_info :: KubernetesClusterInfo , COMMON_BASH_TRAP_FUNCTIONS } ,
6464} ;
6565use strum:: { EnumDiscriminants , IntoStaticStr , ParseError } ;
6666
@@ -374,6 +374,7 @@ pub async fn reconcile_hbase(hbase: Arc<HbaseCluster>, ctx: Arc<Ctx>) -> Result<
374374 // discovery config map
375375 let discovery_cm = build_discovery_configmap (
376376 & hbase,
377+ & client. kubernetes_cluster_info ,
377378 & zookeeper_connection_information,
378379 & resolved_product_image,
379380 )
@@ -421,6 +422,7 @@ pub async fn reconcile_hbase(hbase: Arc<HbaseCluster>, ctx: Arc<Ctx>) -> Result<
421422 build_rolegroup_service ( & hbase, & hbase_role, & rolegroup, & resolved_product_image) ?;
422423 let rg_configmap = build_rolegroup_config_map (
423424 & hbase,
425+ & client. kubernetes_cluster_info ,
424426 & rolegroup,
425427 rolegroup_config,
426428 & zookeeper_connection_information,
@@ -549,6 +551,7 @@ pub fn build_region_server_role_service(
549551#[ allow( clippy:: too_many_arguments) ]
550552fn build_rolegroup_config_map (
551553 hbase : & HbaseCluster ,
554+ cluster_info : & KubernetesClusterInfo ,
552555 rolegroup : & RoleGroupRef < HbaseCluster > ,
553556 rolegroup_config : & HashMap < PropertyNameKind , BTreeMap < String , String > > ,
554557 zookeeper_connection_information : & ZookeeperConnectionInformation ,
@@ -572,8 +575,10 @@ fn build_rolegroup_config_map(
572575 PropertyNameKind :: File ( file_name) if file_name == HBASE_SITE_XML => {
573576 let mut hbase_site_config = BTreeMap :: new ( ) ;
574577 hbase_site_config. extend ( zookeeper_connection_information. as_hbase_settings ( ) ) ;
575- hbase_site_config
576- . extend ( kerberos_config_properties ( hbase) . context ( AddKerberosConfigSnafu ) ?) ;
578+ hbase_site_config. extend (
579+ kerberos_config_properties ( hbase, cluster_info)
580+ . context ( AddKerberosConfigSnafu ) ?,
581+ ) ;
577582 hbase_site_config
578583 . extend ( hbase_opa_config. map_or ( vec ! [ ] , |config| config. hbase_site_config ( ) ) ) ;
579584
0 commit comments