Skip to content

Commit 17cfdf3

Browse files
author
madanadit
committed
Refactor
1 parent c5b6c0b commit 17cfdf3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorPodFactory.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,10 @@ private[spark] class ExecutorPodFactory(
205205
.endSpec()
206206
.build()
207207

208-
val executorPodAndContainerWithVolumes =
208+
val (executorPodWithVolumes, executorContainerWithVolumes) =
209209
KubernetesUtils.addVolumes(executorPod,
210210
executorContainer,
211211
sparkConf.get(KUBERNETES_EXECUTOR_VOLUMES))
212-
val executorPodWithVolumes = executorPodAndContainerWithVolumes._1
213-
val executorContainerWithVolumes = executorPodAndContainerWithVolumes._2
214212

215213
val containerWithLimitCores = executorLimitCores.map { limitCores =>
216214
val executorCpuLimitQuantity = new QuantityBuilder(false)

0 commit comments

Comments
 (0)