@@ -12,7 +12,7 @@ use stackable_operator::{
1212} ;
1313
1414use crate :: {
15- controller:: { CONTAINER_IMAGE_BASE_NAME , ValidatedHiveCluster } ,
15+ controller:: { CONTAINER_IMAGE_BASE_NAME , ValidatedCluster } ,
1616 crd:: {
1717 HIVE_SITE_XML , HiveRole , JVM_SECURITY_PROPERTIES_FILE , MetaStoreConfig ,
1818 v1alpha1:: { self , HiveMetastoreRoleConfig } ,
@@ -65,13 +65,16 @@ pub struct ValidatedRoleGroupConfig {
6565pub fn validate_cluster (
6666 hive : & v1alpha1:: HiveCluster ,
6767 image_repository : & str ,
68- pkg_version : & str ,
6968 product_config_manager : & ProductConfigManager ,
70- ) -> Result < ValidatedHiveCluster , Error > {
69+ ) -> Result < ValidatedCluster , Error > {
7170 let resolved_product_image = hive
7271 . spec
7372 . image
74- . resolve ( CONTAINER_IMAGE_BASE_NAME , image_repository, pkg_version)
73+ . resolve (
74+ CONTAINER_IMAGE_BASE_NAME ,
75+ image_repository,
76+ crate :: built_info:: PKG_VERSION ,
77+ )
7578 . context ( ResolveProductImageSnafu ) ?;
7679
7780 let role = hive. spec . metastore . as_ref ( ) . context ( NoMetaStoreRoleSnafu ) ?;
@@ -147,7 +150,7 @@ pub fn validate_cluster(
147150 . jdbc_connection_details ( "METADATA" )
148151 . context ( InvalidMetadataDatabaseConnectionSnafu ) ?;
149152
150- Ok ( ValidatedHiveCluster {
153+ Ok ( ValidatedCluster {
151154 image : resolved_product_image,
152155 role_groups : group_configs,
153156 role_config,
0 commit comments