@@ -24,6 +24,7 @@ use stackable_operator::{
2424 security:: PodSecurityContextBuilder , volume:: SecretFormat ,
2525 } ,
2626 } ,
27+ cli:: OperatorEnvironmentOptions ,
2728 client:: Client ,
2829 cluster_resources:: { ClusterResourceApplyStrategy , ClusterResources } ,
2930 commons:: {
@@ -115,12 +116,13 @@ use crate::{
115116pub const NIFI_CONTROLLER_NAME : & str = "nificluster" ;
116117pub const NIFI_FULL_CONTROLLER_NAME : & str = concatcp ! ( NIFI_CONTROLLER_NAME , '.' , OPERATOR_NAME ) ;
117118
118- const DOCKER_IMAGE_BASE_NAME : & str = "nifi" ;
119+ const CONTAINER_IMAGE_BASE_NAME : & str = "nifi" ;
119120const LOG_VOLUME_NAME : & str = "log" ;
120121
121122pub struct Ctx {
122123 pub client : Client ,
123124 pub product_config : ProductConfigManager ,
125+ pub operator_environment : OperatorEnvironmentOptions ,
124126}
125127
126128#[ derive( Snafu , Debug , EnumDiscriminants ) ]
@@ -377,7 +379,11 @@ pub async fn reconcile_nifi(
377379 let resolved_product_image = nifi
378380 . spec
379381 . image
380- . resolve ( DOCKER_IMAGE_BASE_NAME , crate :: built_info:: PKG_VERSION )
382+ . resolve (
383+ CONTAINER_IMAGE_BASE_NAME ,
384+ & ctx. operator_environment . image_repository ,
385+ crate :: built_info:: PKG_VERSION ,
386+ )
381387 . context ( ResolveProductImageSnafu ) ?;
382388
383389 tracing:: info!( "Checking for sensitive key configuration" ) ;
0 commit comments