[
https://issues.apache.org/jira/browse/AIRFLOW-3152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17149583#comment-17149583
]
ASF subversion and git services commented on AIRFLOW-3152:
----------------------------------------------------------
Commit 7ebd91380114d372fe0d114a2189905a4ad8cf70 in airflow's branch
refs/heads/v1-10-test from Marina Pereira
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=7ebd913 ]
[AIRFLOW-3152] Kubernetes Pod Operator should support init containers. (#6196)
* Add support for init-containers to Kubernetes Pod Operator
Enables start-up related code to be added for an app container in K8s Pod
operator.
Add new init_container resource that can be attached to the K8s Pod.
* Update init_container and fix tests
Fix the error in init_container and the associated tests.
* Refactor and fix tests
Fix tests for init_containers
* Fix init_container test errors
Remove unused mocks in init_container test
* Fix init_container test errors
Update volume mount object used in init_container test
* Fix init_container test errors
Add the missing volume setup for the init_container test.
* Fix init_container test failure.
Fix the expected result in the init_container test.
* Fix init_container test failures
Update expected results in the init_container tests
* Update the KubernetesPodOperator guide
Update the KubernetesPodOperator guide to document support for init containers
* Update init-container tests
Fix test failures casued due python versions by sorting the output before
assert test.
* Update init-container to use k8s V1Container object
Remove custom object InitContainer.
Allow users to pass List[k8s.V1Container] as init-container in K8sPodOperator
* Add missing init_containers initalization in K8s pod operator
Due to rebase from master, certain sections of the kubernetes_pod_operator.py
file was refactored which led to missing init_containers initalization in K8s
pod operator. Add missing init_containers initalization in K8s pod operator.
Update kubernetes pod operator configurations in init container test.
(cherry picked from commit 4e1b0aa7c52e79eeb99698e6190e6f39ca3cab7f)
> Kubernetes Pod Operator should support init containers
> ------------------------------------------------------
>
> Key: AIRFLOW-3152
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3152
> Project: Apache Airflow
> Issue Type: Sub-task
> Components: operators
> Affects Versions: 1.10.1
> Reporter: Sriraam AS
> Priority: Major
> Labels: kubernetes
> Fix For: 2.0.0
>
>
> The pod generator has support forĀ init containers, but the kubernetes pod
> operator doesn't supportĀ init containers, yet.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)