@@ -67,10 +67,10 @@ use strum::{EnumDiscriminants, IntoStaticStr, ParseError};
6767
6868use stackable_hbase_crd:: {
6969 merged_env, Container , HbaseCluster , HbaseClusterStatus , HbaseConfig , HbaseConfigFragment ,
70- HbaseRole , APP_NAME , CONFIG_DIR_NAME , HBASE_ENV_SH , HBASE_HEAPSIZE , HBASE_MANAGES_ZK ,
71- HBASE_MASTER_OPTS , HBASE_REGIONSERVER_OPTS , HBASE_REST_OPTS , HBASE_REST_PORT_NAME_HTTP ,
72- HBASE_REST_PORT_NAME_HTTPS , HBASE_SITE_XML , JVM_HEAP_FACTOR , JVM_SECURITY_PROPERTIES_FILE ,
73- METRICS_PORT , SSL_CLIENT_XML , SSL_SERVER_XML ,
70+ HbaseRole , APP_NAME , CONFIG_DIR_NAME , DEFAULT_SECRET_LIFETIME , HBASE_ENV_SH , HBASE_HEAPSIZE ,
71+ HBASE_MANAGES_ZK , HBASE_MASTER_OPTS , HBASE_REGIONSERVER_OPTS , HBASE_REST_OPTS ,
72+ HBASE_REST_PORT_NAME_HTTP , HBASE_REST_PORT_NAME_HTTPS , HBASE_SITE_XML , JVM_HEAP_FACTOR ,
73+ JVM_SECURITY_PROPERTIES_FILE , METRICS_PORT , SSL_CLIENT_XML , SSL_SERVER_XML ,
7474} ;
7575
7676use crate :: product_logging:: STACKABLE_LOG_DIR ;
@@ -986,8 +986,16 @@ fn build_rolegroup_statefulset(
986986
987987 add_graceful_shutdown_config ( config, & mut pod_builder) . context ( GracefulShutdownSnafu ) ?;
988988 if hbase. has_kerberos_enabled ( ) {
989- add_kerberos_pod_config ( hbase, hbase_role, & mut hbase_container, & mut pod_builder)
990- . context ( AddKerberosConfigSnafu ) ?;
989+ add_kerberos_pod_config (
990+ hbase,
991+ hbase_role,
992+ & mut hbase_container,
993+ & mut pod_builder,
994+ config
995+ . requested_secret_lifetime
996+ . unwrap_or ( DEFAULT_SECRET_LIFETIME ) ,
997+ )
998+ . context ( AddKerberosConfigSnafu ) ?;
991999 }
9921000 pod_builder. add_container ( hbase_container. build ( ) ) ;
9931001
0 commit comments