dongjoon-hyun commented on a change in pull request #36044:
URL: https://github.com/apache/spark/pull/36044#discussion_r841108532



##########
File path: 
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/features/DriverCommandFeatureStep.scala
##########
@@ -67,7 +67,7 @@ private[spark] class DriverCommandFeatureStep(conf: 
KubernetesDriverConf)
     // re-write primary resource, app jar is also added to spark.jars by 
default in SparkSubmit
     // no uploading takes place here
     val newResName = KubernetesUtils
-      .renameMainAppResource(resource = res, shouldUploadLocal = false)
+      .renameMainAppResource(res, Option(conf.sparkConf), false)

Review comment:
       BTW, I'm not sure why we need to add Spark config here because we don't 
use it when `shouldUploadLocal` is `false`, @dcoliversun .
   
   
https://github.com/apache/spark/blob/a139ede8fc31c8098b153b6dad31943272d24522/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/KubernetesUtils.scala#L299-L303
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to