@@ -12,10 +12,9 @@ use stackable_operator::{
1212} ;
1313
1414use crate :: {
15+ controller:: dereference:: DereferencedObjects ,
1516 crd:: { AnyServiceConfig , HbaseRole , v1alpha1} ,
1617 hbase_controller:: { CONTAINER_IMAGE_BASE_NAME , ValidatedCluster } ,
17- security:: opa:: HbaseOpaConfig ,
18- zookeeper:: ZookeeperConnectionInformation ,
1918} ;
2019
2120#[ derive( Snafu , Debug ) ]
@@ -65,8 +64,7 @@ pub fn validate_cluster(
6564 hbase : & v1alpha1:: HbaseCluster ,
6665 image_repository : & str ,
6766 product_config_manager : & ProductConfigManager ,
68- zookeeper_connection_information : ZookeeperConnectionInformation ,
69- hbase_opa_config : Option < HbaseOpaConfig > ,
67+ dereferenced_objects : DereferencedObjects ,
7068) -> Result < ValidatedCluster , Error > {
7169 let resolved_product_image = hbase
7270 . spec
@@ -132,7 +130,7 @@ pub fn validate_cluster(
132130 image : resolved_product_image,
133131 role_groups,
134132 role_configs,
135- zookeeper_connection_information,
136- hbase_opa_config,
133+ zookeeper_connection_information : dereferenced_objects . zookeeper_connection_information ,
134+ hbase_opa_config : dereferenced_objects . hbase_opa_config ,
137135 } )
138136}
0 commit comments