attilapiros commented on code in PR #37990:
URL: https://github.com/apache/spark/pull/37990#discussion_r979435892


##########
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/submit/K8sSubmitOps.scala:
##########
@@ -144,14 +134,13 @@ private[spark] class K8SSparkSubmitOperation extends 
SparkSubmitOperation
                 kubernetesClient
                   .pods
             }
+            ops.withLabel(SPARK_ROLE_LABEL, SPARK_POD_DRIVER_ROLE)

Review Comment:
   Do the label based filtering as early as possible.



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to