@@ -59,7 +59,7 @@ use crate::{
5959 constants:: * ,
6060 logdir:: ResolvedLogDir ,
6161 roles:: { RoleConfig , SparkApplicationRole , SparkContainer , SubmitConfig } ,
62- tlscerts, to_spark_env_sh_string, SparkApplication , SparkApplicationStatus ,
62+ tlscerts, to_spark_env_sh_string, v1alpha1 , SparkApplicationStatus ,
6363 } ,
6464 product_logging:: { self , resolve_vector_aggregator_address} ,
6565 Ctx ,
@@ -206,7 +206,7 @@ impl ReconcilerError for Error {
206206}
207207
208208pub async fn reconcile (
209- spark_application : Arc < DeserializeGuard < SparkApplication > > ,
209+ spark_application : Arc < DeserializeGuard < v1alpha1 :: SparkApplication > > ,
210210 ctx : Arc < Ctx > ,
211211) -> Result < Action > {
212212 tracing:: info!( "Starting reconcile" ) ;
@@ -430,7 +430,7 @@ pub async fn reconcile(
430430}
431431
432432fn init_containers (
433- spark_application : & SparkApplication ,
433+ spark_application : & v1alpha1 :: SparkApplication ,
434434 logging : & Logging < SparkContainer > ,
435435 s3conn : & Option < S3ConnectionSpec > ,
436436 logdir : & Option < ResolvedLogDir > ,
@@ -585,7 +585,7 @@ fn init_containers(
585585
586586#[ allow( clippy:: too_many_arguments) ]
587587fn pod_template (
588- spark_application : & SparkApplication ,
588+ spark_application : & v1alpha1 :: SparkApplication ,
589589 role : SparkApplicationRole ,
590590 config : & RoleConfig ,
591591 volumes : & [ Volume ] ,
@@ -678,7 +678,7 @@ fn pod_template(
678678
679679#[ allow( clippy:: too_many_arguments) ]
680680fn pod_template_config_map (
681- spark_application : & SparkApplication ,
681+ spark_application : & v1alpha1 :: SparkApplication ,
682682 role : SparkApplicationRole ,
683683 merged_config : & RoleConfig ,
684684 product_config : Option < & HashMap < PropertyNameKind , BTreeMap < String , String > > > ,
@@ -797,7 +797,7 @@ fn pod_template_config_map(
797797}
798798
799799fn submit_job_config_map (
800- spark_application : & SparkApplication ,
800+ spark_application : & v1alpha1 :: SparkApplication ,
801801 product_config : Option < & HashMap < PropertyNameKind , BTreeMap < String , String > > > ,
802802 spark_image : & ResolvedProductImage ,
803803) -> Result < ConfigMap > {
@@ -856,7 +856,7 @@ fn submit_job_config_map(
856856
857857#[ allow( clippy:: too_many_arguments) ]
858858fn spark_job (
859- spark_application : & SparkApplication ,
859+ spark_application : & v1alpha1 :: SparkApplication ,
860860 spark_image : & ResolvedProductImage ,
861861 serviceaccount : & ServiceAccount ,
862862 env : & [ EnvVar ] ,
@@ -974,7 +974,7 @@ fn spark_job(
974974/// Both objects have an owner reference to the SparkApplication, as well as the same name as the app.
975975/// They are deleted when the job is deleted.
976976fn build_spark_role_serviceaccount (
977- spark_app : & SparkApplication ,
977+ spark_app : & v1alpha1 :: SparkApplication ,
978978 spark_image : & ResolvedProductImage ,
979979) -> Result < ( ServiceAccount , RoleBinding ) > {
980980 let sa_name = spark_app. metadata . name . as_ref ( ) . unwrap ( ) . to_string ( ) ;
@@ -1029,7 +1029,7 @@ fn security_context() -> PodSecurityContext {
10291029}
10301030
10311031pub fn error_policy (
1032- _obj : Arc < DeserializeGuard < SparkApplication > > ,
1032+ _obj : Arc < DeserializeGuard < v1alpha1 :: SparkApplication > > ,
10331033 error : & Error ,
10341034 _ctx : Arc < Ctx > ,
10351035) -> Action {
0 commit comments