Skip to content

Commit

Permalink
[SPARK-44996][K8S] VolcanoFeatureStep should not create `DefaultVol…
Browse files Browse the repository at this point in the history
…canoClient` if not needed
  • Loading branch information
dongjoon-hyun committed Aug 29, 2023
1 parent 8e779d1 commit 9fad8f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private[spark] class VolcanoFeatureStep extends KubernetesDriverCustomFeatureCon
"for executor.")
return Seq.empty
}
val client = new DefaultVolcanoClient
lazy val client = new DefaultVolcanoClient
val template = kubernetesConf.getOption(POD_GROUP_TEMPLATE_FILE_KEY)
val pg = template.map(client.podGroups.load(_).item).getOrElse(new PodGroup())
var metadata = pg.getMetadata
Expand Down

0 comments on commit 9fad8f6

Please sign in to comment.