merrily01 commented on a change in pull request #25920:
[SPARK-29233][KUBERNETES] Add regex expression checks for executorEnv…
URL: https://github.com/apache/spark/pull/25920#discussion_r328284805
##########
File path:
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/KubernetesConf.scala
##########
@@ -148,7 +149,8 @@ private[spark] class KubernetesExecutorConf(
executorCustomLabels ++ presetLabels
}
- override def environment: Map[String, String] =
sparkConf.getExecutorEnv.toMap
+ override def environment: Map[String, String] =
sparkConf.getExecutorEnv.filter(
Review comment:
My goal is to filter and remove irregular elements in executorEnv, and to
retain qualified elements;
I think 'filter' is more appropriate.
Isn't it more complicated to use "foreach"?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]