@@ -6,6 +6,7 @@ use const_format::concatcp;
66use product_config:: { ProductConfigManager , types:: PropertyNameKind } ;
77use snafu:: { ResultExt , Snafu } ;
88use stackable_operator:: {
9+ cli:: OperatorEnvironmentOptions ,
910 cluster_resources:: { ClusterResourceApplyStrategy , ClusterResources } ,
1011 commons:: {
1112 product_image_selection:: { self } ,
@@ -34,8 +35,8 @@ use strum::{EnumDiscriminants, IntoStaticStr};
3435
3536use crate :: {
3637 crd:: {
37- self , APP_NAME , DOCKER_IMAGE_BASE_NAME , JVM_SECURITY_PROPERTIES_FILE , KafkaClusterStatus ,
38- OPERATOR_NAME , authorization,
38+ self , APP_NAME , CONTAINER_IMAGE_BASE_NAME , JVM_SECURITY_PROPERTIES_FILE ,
39+ KafkaClusterStatus , OPERATOR_NAME , authorization,
3940 listener:: get_kafka_listener_config,
4041 role:: {
4142 AnyConfig , KafkaRole , broker:: BROKER_PROPERTIES_FILE ,
@@ -60,6 +61,7 @@ pub const KAFKA_FULL_CONTROLLER_NAME: &str = concatcp!(KAFKA_CONTROLLER_NAME, '.
6061pub struct Ctx {
6162 pub client : stackable_operator:: client:: Client ,
6263 pub product_config : ProductConfigManager ,
64+ pub operator_environment : OperatorEnvironmentOptions ,
6365}
6466
6567#[ derive( Snafu , Debug , EnumDiscriminants ) ]
@@ -271,7 +273,11 @@ pub async fn reconcile_kafka(
271273 let resolved_product_image = kafka
272274 . spec
273275 . image
274- . resolve ( DOCKER_IMAGE_BASE_NAME , crate :: built_info:: PKG_VERSION )
276+ . resolve (
277+ CONTAINER_IMAGE_BASE_NAME ,
278+ & ctx. operator_environment . image_repository ,
279+ crate :: built_info:: PKG_VERSION ,
280+ )
275281 . context ( ResolveProductImageSnafu ) ?;
276282
277283 let mut cluster_resources = ClusterResources :: new (
0 commit comments