@@ -32,6 +32,7 @@ use stackable_operator::{
3232 } ,
3333 } ,
3434 } ,
35+ cli:: OperatorEnvironmentOptions ,
3536 cluster_resources:: { ClusterResourceApplyStrategy , ClusterResources } ,
3637 commons:: {
3738 product_image_selection:: { self , ResolvedProductImage } ,
@@ -115,7 +116,7 @@ use crate::{
115116pub const HIVE_CONTROLLER_NAME : & str = "hivecluster" ;
116117pub const HIVE_FULL_CONTROLLER_NAME : & str = concatcp ! ( HIVE_CONTROLLER_NAME , '.' , OPERATOR_NAME ) ;
117118
118- const DOCKER_IMAGE_BASE_NAME : & str = "hive" ;
119+ const CONTAINER_IMAGE_BASE_NAME : & str = "hive" ;
119120
120121pub const MAX_HIVE_LOG_FILES_SIZE : MemoryQuantity = MemoryQuantity {
121122 value : 10.0 ,
@@ -125,6 +126,7 @@ pub const MAX_HIVE_LOG_FILES_SIZE: MemoryQuantity = MemoryQuantity {
125126pub struct Ctx {
126127 pub client : stackable_operator:: client:: Client ,
127128 pub product_config : ProductConfigManager ,
129+ pub operator_environment : OperatorEnvironmentOptions ,
128130}
129131
130132#[ derive( Snafu , Debug , EnumDiscriminants ) ]
@@ -362,7 +364,11 @@ pub async fn reconcile_hive(
362364 let resolved_product_image = hive
363365 . spec
364366 . image
365- . resolve ( DOCKER_IMAGE_BASE_NAME , crate :: built_info:: PKG_VERSION )
367+ . resolve (
368+ CONTAINER_IMAGE_BASE_NAME ,
369+ & ctx. operator_environment . image_repository ,
370+ crate :: built_info:: PKG_VERSION ,
371+ )
366372 . context ( ResolveProductImageSnafu ) ?;
367373 let role = hive. spec . metastore . as_ref ( ) . context ( NoMetaStoreRoleSnafu ) ?;
368374 let hive_role = HiveRole :: MetaStore ;
0 commit comments