Skip to content

Commit a9de157

Browse files
committed
feat: advertise restserver in rolegroup configmap
1 parent 449e2c9 commit a9de157

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

rust/operator-binary/src/hbase_controller.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,20 @@ fn build_rolegroup_config_map(
591591
HBASE_REGIONSERVER_UI_PORT.to_string(),
592592
);
593593
}
594-
HbaseRole::RestServer => {}
594+
HbaseRole::RestServer => {
595+
hbase_site_config.insert(
596+
"hbase.rest.hostname".to_string(),
597+
"${env:HBASE_SERVICE_HOST}".to_string(),
598+
);
599+
hbase_site_config.insert(
600+
"hbase.rest.port".to_string(),
601+
"${env:HBASE_SERVICE_PORT}".to_string(),
602+
);
603+
hbase_site_config.insert(
604+
"hbase.rest.info.port".to_string(),
605+
"${env:HBASE_INFO_PORT}".to_string(),
606+
);
607+
}
595608
};
596609

597610
// configOverride come last

0 commit comments

Comments
 (0)