@@ -27,7 +27,10 @@ use stackable_operator::{
2727 v2:: {
2828 config_overrides:: KeyValueConfigOverrides ,
2929 role_utils:: JavaCommonConfig ,
30- types:: kubernetes:: { ConfigMapName , ListenerClassName , SecretClassName } ,
30+ types:: {
31+ common:: Port ,
32+ kubernetes:: { ConfigMapName , ListenerClassName , SecretClassName } ,
33+ } ,
3134 } ,
3235 versioned:: versioned,
3336} ;
@@ -56,18 +59,18 @@ pub const HBASE_CLUSTER_DISTRIBUTED: &str = "hbase.cluster.distributed";
5659pub const HBASE_ROOTDIR : & str = "hbase.rootdir" ;
5760const DEFAULT_HBASE_ROOTDIR : & str = "/hbase" ;
5861
59- pub const HBASE_MASTER_PORT : u16 = 16000 ;
62+ pub const HBASE_MASTER_PORT : Port = Port ( 16000 ) ;
6063// HBase always uses 16010, regardless of http or https. On 2024-01-17 we decided in Arch-meeting that we want to stick
6164// the port numbers to what the product is doing, so we get the least surprise for users - even when this means we have
6265// inconsistency between Stackable products.
63- pub const HBASE_MASTER_UI_PORT : u16 = 16010 ;
64- pub const HBASE_MASTER_METRICS_PORT : u16 = 16010 ;
65- pub const HBASE_REGIONSERVER_PORT : u16 = 16020 ;
66- pub const HBASE_REGIONSERVER_UI_PORT : u16 = 16030 ;
67- pub const HBASE_REGIONSERVER_METRICS_PORT : u16 = 16030 ;
68- pub const HBASE_REST_PORT : u16 = 8080 ;
69- pub const HBASE_REST_UI_PORT : u16 = 8085 ;
70- pub const HBASE_REST_METRICS_PORT : u16 = 8085 ;
66+ pub const HBASE_MASTER_UI_PORT : Port = Port ( 16010 ) ;
67+ pub const HBASE_MASTER_METRICS_PORT : Port = Port ( 16010 ) ;
68+ pub const HBASE_REGIONSERVER_PORT : Port = Port ( 16020 ) ;
69+ pub const HBASE_REGIONSERVER_UI_PORT : Port = Port ( 16030 ) ;
70+ pub const HBASE_REGIONSERVER_METRICS_PORT : Port = Port ( 16030 ) ;
71+ pub const HBASE_REST_PORT : Port = Port ( 8080 ) ;
72+ pub const HBASE_REST_UI_PORT : Port = Port ( 8085 ) ;
73+ pub const HBASE_REST_METRICS_PORT : Port = Port ( 8085 ) ;
7174pub const LISTENER_VOLUME_NAME : & str = "listener" ;
7275pub const LISTENER_VOLUME_DIR : & str = "/stackable/listener" ;
7376
0 commit comments