@@ -57,8 +57,7 @@ use crate::{
5757 VOLUME_MOUNT_NAME_CONFIG , VOLUME_MOUNT_NAME_LOG , VOLUME_MOUNT_NAME_LOG_CONFIG ,
5858 VOLUME_MOUNT_PATH_CONFIG , VOLUME_MOUNT_PATH_LOG , VOLUME_MOUNT_PATH_LOG_CONFIG ,
5959 } ,
60- history,
61- history:: { HistoryConfig , SparkHistoryServer , SparkHistoryServerContainer } ,
60+ history:: { self , v1alpha1, HistoryConfig , SparkHistoryServerContainer } ,
6261 logdir:: ResolvedLogDir ,
6362 tlscerts, to_spark_env_sh_string,
6463 } ,
@@ -214,7 +213,7 @@ impl ReconcilerError for Error {
214213}
215214/// Updates the status of the SparkApplication that started the pod.
216215pub async fn reconcile (
217- shs : Arc < DeserializeGuard < SparkHistoryServer > > ,
216+ shs : Arc < DeserializeGuard < v1alpha1 :: SparkHistoryServer > > ,
218217 ctx : Arc < Ctx > ,
219218) -> Result < Action > {
220219 tracing:: info!( "Starting reconcile history server" ) ;
@@ -357,7 +356,7 @@ pub async fn reconcile(
357356}
358357
359358pub fn error_policy (
360- _obj : Arc < DeserializeGuard < SparkHistoryServer > > ,
359+ _obj : Arc < DeserializeGuard < v1alpha1 :: SparkHistoryServer > > ,
361360 error : & Error ,
362361 _ctx : Arc < Ctx > ,
363362) -> Action {
@@ -369,11 +368,11 @@ pub fn error_policy(
369368
370369#[ allow( clippy:: result_large_err) ]
371370fn build_config_map (
372- shs : & SparkHistoryServer ,
371+ shs : & v1alpha1 :: SparkHistoryServer ,
373372 config : & HashMap < PropertyNameKind , BTreeMap < String , String > > ,
374373 merged_config : & HistoryConfig ,
375374 app_version_label : & str ,
376- rolegroupref : & RoleGroupRef < SparkHistoryServer > ,
375+ rolegroupref : & RoleGroupRef < v1alpha1 :: SparkHistoryServer > ,
377376 log_dir : & ResolvedLogDir ,
378377 vector_aggregator_address : Option < & str > ,
379378) -> Result < ConfigMap , Error > {
@@ -441,9 +440,9 @@ fn build_config_map(
441440
442441#[ allow( clippy:: result_large_err) ]
443442fn build_stateful_set (
444- shs : & SparkHistoryServer ,
443+ shs : & v1alpha1 :: SparkHistoryServer ,
445444 resolved_product_image : & ResolvedProductImage ,
446- rolegroupref : & RoleGroupRef < SparkHistoryServer > ,
445+ rolegroupref : & RoleGroupRef < v1alpha1 :: SparkHistoryServer > ,
447446 log_dir : & ResolvedLogDir ,
448447 merged_config : & HistoryConfig ,
449448 serviceaccount : & ServiceAccount ,
@@ -609,10 +608,10 @@ fn build_stateful_set(
609608
610609#[ allow( clippy:: result_large_err) ]
611610fn build_service (
612- shs : & SparkHistoryServer ,
611+ shs : & v1alpha1 :: SparkHistoryServer ,
613612 app_version_label : & str ,
614613 role : & str ,
615- group : Option < & RoleGroupRef < SparkHistoryServer > > ,
614+ group : Option < & RoleGroupRef < v1alpha1 :: SparkHistoryServer > > ,
616615) -> Result < Service , Error > {
617616 let group_name = match group {
618617 Some ( rgr) => rgr. role_group . clone ( ) ,
@@ -677,7 +676,7 @@ fn build_service(
677676// See: https://github.com/stackabletech/spark-k8s-operator/issues/499
678677#[ allow( clippy:: result_large_err) ]
679678fn build_history_role_serviceaccount (
680- shs : & SparkHistoryServer ,
679+ shs : & v1alpha1 :: SparkHistoryServer ,
681680 app_version_label : & str ,
682681) -> Result < ( ServiceAccount , RoleBinding ) > {
683682 let sa = ServiceAccount {
@@ -718,9 +717,9 @@ fn build_history_role_serviceaccount(
718717
719718#[ allow( clippy:: result_large_err) ]
720719fn spark_defaults (
721- shs : & SparkHistoryServer ,
720+ shs : & v1alpha1 :: SparkHistoryServer ,
722721 log_dir : & ResolvedLogDir ,
723- rolegroupref : & RoleGroupRef < SparkHistoryServer > ,
722+ rolegroupref : & RoleGroupRef < v1alpha1 :: SparkHistoryServer > ,
724723) -> Result < String , Error > {
725724 let mut log_dir_settings = log_dir. history_server_spark_config ( ) . context ( LogDirSnafu ) ?;
726725
@@ -782,8 +781,8 @@ fn labels<'a, T>(
782781/// group should have a replica count of 0 or 1.
783782#[ allow( clippy:: result_large_err) ]
784783fn cleaner_config (
785- shs : & SparkHistoryServer ,
786- rolegroup_ref : & RoleGroupRef < SparkHistoryServer > ,
784+ shs : & v1alpha1 :: SparkHistoryServer ,
785+ rolegroup_ref : & RoleGroupRef < v1alpha1 :: SparkHistoryServer > ,
787786) -> Result < BTreeMap < String , String > , Error > {
788787 let mut result = BTreeMap :: new ( ) ;
789788
0 commit comments