kaxil commented on a change in pull request #6230: [AIRFLOW-5413] Allow K8S
worker pod to be configured from JSON/YAML file
URL: https://github.com/apache/airflow/pull/6230#discussion_r365483654
##########
File path: airflow/executors/kubernetes_executor.py
##########
@@ -86,6 +84,7 @@ def __init__(self): # pylint: disable=too-many-statements
self.kubernetes_section, "worker_container_image_pull_policy"
)
self.kube_node_selectors =
configuration_dict.get('kubernetes_node_selectors', {})
+ self.pod_template_file = conf.get(self.kubernetes_section,
'pod_template_file')
Review comment:
```suggestion
self.pod_template_file = conf.get(self.kubernetes_section,
'pod_template_file', fallback=None)
```
Just a safeguard
----------------------------------------------------------------
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