@@ -7,14 +7,12 @@ use product_config::{ProductConfigManager, types::PropertyNameKind};
77use snafu:: { OptionExt , ResultExt , Snafu } ;
88use stackable_operator:: {
99 commons:: product_image_selection,
10- crd:: s3,
1110 product_config_utils:: { transform_all_roles_to_config, validate_all_roles_and_groups_config} ,
1211 role_utils:: GenericRoleConfig ,
1312} ;
1413
1514use crate :: {
16- config:: opa:: HiveOpaConfig ,
17- controller:: { CONTAINER_IMAGE_BASE_NAME , ValidatedCluster } ,
15+ controller:: { CONTAINER_IMAGE_BASE_NAME , ValidatedCluster , dereference:: DereferencedObjects } ,
1816 crd:: {
1917 HIVE_SITE_XML , HiveRole , JVM_SECURITY_PROPERTIES_FILE , MetaStoreConfig ,
2018 v1alpha1:: { self , HiveMetastoreRoleConfig } ,
@@ -68,8 +66,7 @@ pub fn validate_cluster(
6866 hive : & v1alpha1:: HiveCluster ,
6967 image_repository : & str ,
7068 product_config_manager : & ProductConfigManager ,
71- s3_connection_spec : Option < s3:: v1alpha1:: ConnectionSpec > ,
72- hive_opa_config : Option < HiveOpaConfig > ,
69+ dereferenced_objects : DereferencedObjects ,
7370) -> Result < ValidatedCluster , Error > {
7471 let resolved_product_image = hive
7572 . spec
@@ -159,7 +156,7 @@ pub fn validate_cluster(
159156 role_groups : group_configs,
160157 role_config,
161158 metadata_database_connection_details,
162- s3_connection_spec,
163- hive_opa_config,
159+ s3_connection_spec : dereferenced_objects . s3_connection_spec ,
160+ hive_opa_config : dereferenced_objects . hive_opa_config ,
164161 } )
165162}
0 commit comments