@@ -335,6 +335,8 @@ pub struct ValidatedCluster {
335335 pub role_groups : BTreeMap < String , ValidatedRoleGroupConfig > ,
336336 pub role_config : Option < ValidatedRoleConfig > ,
337337 pub metadata_database_connection_details : JdbcDatabaseConnectionDetails ,
338+ pub s3_connection_spec : Option < s3:: v1alpha1:: ConnectionSpec > ,
339+ pub hive_opa_config : Option < HiveOpaConfig > ,
338340}
339341
340342pub async fn reconcile_hive (
@@ -358,6 +360,8 @@ pub async fn reconcile_hive(
358360 hive,
359361 & ctx. operator_environment . image_repository ,
360362 & ctx. product_config ,
363+ dereferenced. s3_connection_spec ,
364+ dereferenced. hive_opa_config ,
361365 )
362366 . context ( ValidateSnafu ) ?;
363367
@@ -410,10 +414,10 @@ pub async fn reconcile_hive(
410414 & rolegroup,
411415 & validated_rg_config. product_config_properties ,
412416 & validated. metadata_database_connection_details ,
413- dereferenced . s3_connection_spec . as_ref ( ) ,
417+ validated . s3_connection_spec . as_ref ( ) ,
414418 & validated_rg_config. merged_config ,
415419 & client. kubernetes_cluster_info ,
416- dereferenced . hive_opa_config . as_ref ( ) ,
420+ validated . hive_opa_config . as_ref ( ) ,
417421 ) ?;
418422 let rg_statefulset = build_metastore_rolegroup_statefulset (
419423 hive,
@@ -422,10 +426,10 @@ pub async fn reconcile_hive(
422426 & rolegroup,
423427 & validated_rg_config. product_config_properties ,
424428 & validated. metadata_database_connection_details ,
425- dereferenced . s3_connection_spec . as_ref ( ) ,
429+ validated . s3_connection_spec . as_ref ( ) ,
426430 & validated_rg_config. merged_config ,
427431 & rbac_sa. name_any ( ) ,
428- dereferenced . hive_opa_config . as_ref ( ) ,
432+ validated . hive_opa_config . as_ref ( ) ,
429433 ) ?;
430434
431435 cluster_resources
0 commit comments