Eric Carlson created AIRFLOW-4878:
-------------------------------------

             Summary: Allow alternate docker image for kubernetes xcom sidecar
                 Key: AIRFLOW-4878
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4878
             Project: Apache Airflow
          Issue Type: Improvement
          Components: operators, xcom
    Affects Versions: 2.0.0
            Reporter: Eric Carlson


Currently the image used for xcom push is hardcoded to `python:3.5-alpine`:

- 
[https://github.com/apache/airflow/blob/master/airflow/kubernetes/kubernetes_request_factory/pod_request_factory.py#L98]

This is a problem in environments that are locked down and do not have access 
to the public docker registry.

I propose adding a similar set of config variables and method arguments that 
specify the image and pull policy of the base container.  Specifically:
 * in the config file, adding \{xcom_container_repository, xcom_container_tag, 
xcom_container_image_pull_policy} to complement the existing 
\{worker_container_*} variables
 * In the pod operator, adding a xcom_image_* arguments to complement the 
existing image_* arguments (image, image_pull_policy)

If this proposal is acceptable I have some locally working code that I'll 
create a PR from



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to