You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/03/12 02:03:00 UTC

[GitHub] [airflow] pgagnon commented on a change in pull request #4859: [AIRFLOW-3917] Added config to support running scheduler(with kuberne…

pgagnon commented on a change in pull request #4859: [AIRFLOW-3917] Added config to support running scheduler(with kuberne…
URL: https://github.com/apache/airflow/pull/4859#discussion_r264496224
 
 

 ##########
 File path: airflow/contrib/kubernetes/kube_client.py
 ##########
 @@ -48,4 +48,10 @@ def _load_kube_config(in_cluster, cluster_context, config_file):
 def get_kube_client(in_cluster=conf.getboolean('kubernetes', 'in_cluster'),
                     cluster_context=None,
                     config_file=None):
+    if cluster_context is None:
+        if conf.get('kubernetes', 'cluster_context'):
+            cluster_context = conf.get('kubernetes', 'cluster_context')
+    if config_file is None:
+        if conf.get('kubernetes', 'config_file'):
 
 Review comment:
   Idem.

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


With regards,
Apache Git Services