@@ -35,7 +35,6 @@ use stackable_operator::{
3535 } ,
3636 kvp:: { Annotations , Label , LabelError , Labels , ObjectLabels } ,
3737 logging:: controller:: ReconcilerError ,
38- memory:: { BinaryMultiple , MemoryQuantity } ,
3938 product_logging:: {
4039 self ,
4140 framework:: LoggingError ,
@@ -56,7 +55,10 @@ use strum::{EnumDiscriminants, IntoStaticStr};
5655
5756use crate :: {
5857 OPERATOR_NAME ,
59- controller:: build:: discovery:: build_discovery_config_map,
58+ controller:: build:: {
59+ discovery:: build_discovery_config_map,
60+ properties:: logging:: { MAX_HBASE_LOG_FILES_SIZE , STACKABLE_LOG_DIR } ,
61+ } ,
6062 crd:: {
6163 APP_NAME , AnyServiceConfig , CONFIG_DIR_NAME , Container , HbaseClusterStatus , HbaseRole ,
6264 LISTENER_VOLUME_DIR , LISTENER_VOLUME_NAME , merged_env, v1alpha1,
@@ -69,12 +71,7 @@ use crate::{
6971
7072pub const HBASE_CONTROLLER_NAME : & str = "hbasecluster" ;
7173pub const FULL_HBASE_CONTROLLER_NAME : & str = concatcp ! ( HBASE_CONTROLLER_NAME , '.' , OPERATOR_NAME ) ;
72- pub const MAX_HBASE_LOG_FILES_SIZE : MemoryQuantity = MemoryQuantity {
73- value : 10.0 ,
74- unit : BinaryMultiple :: Mebi ,
75- } ;
7674
77- pub const STACKABLE_LOG_DIR : & str = "/stackable/log" ;
7875pub static CONTAINERDEBUG_LOG_DIRECTORY : std:: sync:: LazyLock < String > =
7976 std:: sync:: LazyLock :: new ( || format ! ( "{STACKABLE_LOG_DIR}/containerdebug" ) ) ;
8077
@@ -84,8 +81,6 @@ const HDFS_DISCOVERY_TMP_DIR: &str = "/stackable/tmp/hdfs";
8481const HBASE_CONFIG_TMP_DIR : & str = "/stackable/tmp/hbase" ;
8582const HBASE_LOG_CONFIG_TMP_DIR : & str = "/stackable/tmp/log_config" ;
8683
87- pub const CONTAINER_IMAGE_BASE_NAME : & str = "hbase" ;
88-
8984pub struct Ctx {
9085 pub client : stackable_operator:: client:: Client ,
9186 pub operator_environment : OperatorEnvironmentOptions ,
@@ -108,18 +103,20 @@ pub struct ValidatedCluster {
108103/// Cluster-wide settings resolved once during validation.
109104#[ derive( Clone , Debug ) ]
110105pub struct ValidatedClusterConfig {
111- pub zookeeper_connection_information : ZookeeperConnectionInformation ,
106+ // Pre-resolved OPA connection configuration.
112107 pub hbase_opa_config : Option < HbaseOpaConfig > ,
113108 pub kerberos_enabled : bool ,
114- /// Pre-resolved kerberos properties for hbase-site.xml (empty when kerberos is disabled).
109+ // Pre-resolved kerberos properties for hbase-site.xml (empty when kerberos is disabled).
115110 pub hbase_site_kerberos_config : BTreeMap < String , String > ,
116- /// Pre-resolved kerberos properties for the discovery `hbase-site.xml` exposed to clients
117- /// (empty when kerberos is disabled).
111+ // Pre-resolved kerberos properties for the discovery `hbase-site.xml` exposed to clients
112+ // (empty when kerberos is disabled).
118113 pub discovery_kerberos_config : BTreeMap < String , String > ,
119- /// Pre-resolved ssl-server.xml settings (empty when HTTPS is disabled).
114+ // Pre-resolved ssl-server.xml settings (empty when HTTPS is disabled).
120115 pub ssl_server_settings : BTreeMap < String , String > ,
121- /// Pre-resolved ssl-client.xml settings (empty when HTTPS is disabled).
116+ // Pre-resolved ssl-client.xml settings (empty when HTTPS is disabled).
122117 pub ssl_client_settings : BTreeMap < String , String > ,
118+ // Pre-resolved zookeeper connection settings.
119+ pub zookeeper_connection_information : ZookeeperConnectionInformation ,
123120}
124121
125122/// Per-role configuration extracted during validation.
0 commit comments