@@ -25,6 +25,7 @@ use stackable_operator::{
2525 security:: PodSecurityContextBuilder ,
2626 } ,
2727 } ,
28+ cli:: OperatorEnvironmentOptions ,
2829 cluster_resources:: { ClusterResourceApplyStrategy , ClusterResources } ,
2930 commons:: {
3031 product_image_selection:: { self , ResolvedProductImage } ,
@@ -106,11 +107,12 @@ const HDFS_DISCOVERY_TMP_DIR: &str = "/stackable/tmp/hdfs";
106107const HBASE_CONFIG_TMP_DIR : & str = "/stackable/tmp/hbase" ;
107108const HBASE_LOG_CONFIG_TMP_DIR : & str = "/stackable/tmp/log_config" ;
108109
109- const DOCKER_IMAGE_BASE_NAME : & str = "hbase" ;
110+ const CONTAINER_IMAGE_BASE_NAME : & str = "hbase" ;
110111
111112pub struct Ctx {
112113 pub client : stackable_operator:: client:: Client ,
113114 pub product_config : ProductConfigManager ,
115+ pub operator_environment : OperatorEnvironmentOptions ,
114116}
115117
116118#[ derive( Snafu , Debug , EnumDiscriminants ) ]
@@ -326,7 +328,11 @@ pub async fn reconcile_hbase(
326328 let resolved_product_image = hbase
327329 . spec
328330 . image
329- . resolve ( DOCKER_IMAGE_BASE_NAME , crate :: built_info:: PKG_VERSION )
331+ . resolve (
332+ CONTAINER_IMAGE_BASE_NAME ,
333+ & ctx. operator_environment . image_repository ,
334+ crate :: built_info:: PKG_VERSION ,
335+ )
330336 . context ( ResolveProductImageSnafu ) ?;
331337 let zookeeper_connection_information = ZookeeperConnectionInformation :: retrieve ( hbase, client)
332338 . await
0 commit comments