Github user mccheah commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22959#discussion_r237313976
  
    --- Diff: 
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/KubernetesConf.scala
 ---
    @@ -112,125 +72,139 @@ private[spark] case class KubernetesConf[T <: 
KubernetesRoleSpecificConf](
       def getOption(key: String): Option[String] = sparkConf.getOption(key)
     }
     
    +private[spark] class KubernetesDriverConf(
    +    sparkConf: SparkConf,
    +    val appId: String,
    +    val mainAppResource: MainAppResource,
    +    val mainClass: String,
    +    val appArgs: Array[String],
    +    val pyFiles: Seq[String])
    +  extends KubernetesConf(sparkConf) {
    +
    +  override val resourceNamePrefix: String = {
    +    val custom = if (Utils.isTesting) 
get(KUBERNETES_DRIVER_POD_NAME_PREFIX) else None
    --- End diff --
    
    Possibly inject this in the test so that we don't have to use 
`Utils.isTesting`? Preference against using test flags to override behavior.


---

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

Reply via email to