dstandish commented on code in PR #27116:
URL: https://github.com/apache/airflow/pull/27116#discussion_r999999987


##########
airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py:
##########
@@ -574,6 +581,11 @@ def build_pod_request_obj(self, context: Context | None = 
None) -> k8s.V1Pod:
         if self.random_name_suffix:
             pod.metadata.name = 
PodGenerator.make_unique_pod_id(pod.metadata.name)
 
+        if not pod.metadata.namespace:
+            hook_namespace = 
self.hook.conn_extras.get('extra__kubernetes__namespace')

Review Comment:
   there is a `get_namespace` method on the hook but it's problematic.  i may 
resolve that in future PR and then can update this. i'll resolve that and 
update this in a followup 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]

Reply via email to