ashb commented on a change in pull request #7575: [AIRFLOW-6949] Respect 
explicit `spark.kubernetes.namespace` conf to SparkSubmitOperator
URL: https://github.com/apache/airflow/pull/7575#discussion_r385590748
 
 

 ##########
 File path: airflow/providers/apache/spark/hooks/spark_submit.py
 ##########
 @@ -208,6 +208,9 @@ def _resolve_connection(self):
                 self._conn_id, conn_data['master']
             )
 
+        if 'spark.kubernetes.namespace' in self._conf:
+            conn_data['namespace'] = self._conf['spark.kubernetes.namespace']
 
 Review comment:
   It's too long a line (would be 147 chars long once we have it indented 
right), so we'd have to wrap it anyway, at which point the benefit of using a 
ternary operator goes away.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to