dongjoon-hyun commented on code in PR #45728:
URL: https://github.com/apache/spark/pull/45728#discussion_r1757166117
##########
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/Constants.scala:
##########
@@ -74,6 +74,7 @@ object Constants {
val ENV_EXECUTOR_POD_NAME = "SPARK_EXECUTOR_POD_NAME"
val ENV_JAVA_OPT_PREFIX = "SPARK_JAVA_OPT_"
val ENV_CLASSPATH = "SPARK_CLASSPATH"
+ val ENV_DRIVER_POD_NAME = "SPARK_DRIVER_POD_NAME"
Review Comment:
If we need this, this should be handled separately before this PR.
##########
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/features/BasicDriverFeatureStep.scala:
##########
@@ -129,6 +129,12 @@ private[spark] class BasicDriverFeatureStep(conf:
KubernetesDriverConf)
.withNewFieldRef("v1", "status.podIP")
.build())
.endEnv()
+ .addNewEnv()
+ .withName(ENV_DRIVER_POD_NAME)
+ .withValueFrom(new EnvVarSourceBuilder()
+ .withNewFieldRef("v1", "metadata.name")
+ .build())
+ .endEnv()
Review Comment:
If we need this, this should be handled separately before this PR.
--
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]