You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/06/29 08:58:31 UTC
[airflow] 01/01: fixup! fixup! [AIRFLOW-5413] Allow K8S worker pod
to be configured from JSON/YAML file (#6230)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 6e92e218b7bd0dae3ce46cd0a84fb9ee9beb9bdf
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Mon Jun 29 10:41:11 2020 +0200
fixup! fixup! [AIRFLOW-5413] Allow K8S worker pod to be configured from JSON/YAML file (#6230)
---
airflow/kubernetes/pod_generator.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/airflow/kubernetes/pod_generator.py b/airflow/kubernetes/pod_generator.py
index d79134a..e46407b 100644
--- a/airflow/kubernetes/pod_generator.py
+++ b/airflow/kubernetes/pod_generator.py
@@ -45,10 +45,14 @@ MAX_LABEL_LEN = 63
MAX_POD_ID_LEN = 253
-class PodDefaults:
+class PodDefaults(object):
"""
Static defaults for the PodGenerator
"""
+
+ def __init__(self):
+ pass
+
XCOM_MOUNT_PATH = '/airflow/xcom'
SIDECAR_CONTAINER_NAME = 'airflow-xcom-sidecar'
XCOM_CMD = 'trap "exit 0" INT; while true; do sleep 30; done;'
@@ -92,7 +96,7 @@ def make_safe_label_value(string):
return safe_label
-class PodGenerator:
+class PodGenerator(object):
"""
Contains Kubernetes Airflow Worker configuration logic