Skip to content

Commit a28ebcf

Browse files
committed
comments
1 parent 3d7a0b9 commit a28ebcf

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

docs/running-on-kubernetes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ logs and remains in "completed" state in the Kubernetes API until it's eventuall
4545

4646
Note that in the completed state, the driver pod does *not* use any computational or memory resources.
4747

48-
The driver and executor pod scheduling is handled by Kubernetes. It is possible to schedule the
48+
The driver and executor pod scheduling is handled by Kubernetes. Communication to the Kubernetes API is done via fabric8, and we are
49+
currently running <code>kubernetes-client</code> version <code>4.1.0</code>. Make sure that any infrastructure additions are weary of said version. It is possible to schedule the
4950
driver and executor pods on a subset of available nodes through a [node selector](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector)
5051
using the configuration property for it. It will be possible to use more advanced
5152
scheduling hints like [node/pod affinities](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity) in a future release.

resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/KubernetesUtils.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,7 @@ private[spark] object KubernetesUtils {
158158
}
159159

160160
def formatTime(time: String): String = {
161-
time match {
162-
case null => "N/A"
163-
case _ => time
164-
}
161+
// TODO: Investigate form `time` comes in
162+
if (time != null) time else "N/A"
165163
}
166164
}

resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/features/MountVolumesFeatureStep.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ private[spark] class MountVolumesFeatureStep(
5656

5757
val volumeBuilder = spec.volumeConf match {
5858
case KubernetesHostPathVolumeConf(hostPath) =>
59-
// TODO: Backwards compatibility allows for empty string, but specify
60-
// hostPath type here
59+
/* "" means that no checks will be performed before mounting the hostPath volume */
6160
new VolumeBuilder()
6261
.withHostPath(new HostPathVolumeSource(hostPath, ""))
6362

0 commit comments

Comments
 (0)