[
https://issues.apache.org/jira/browse/AIRFLOW-3152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17136164#comment-17136164
]
ASF GitHub Bot commented on AIRFLOW-3152:
-----------------------------------------
prithvisathiya commented on pull request #6196:
URL: https://github.com/apache/airflow/pull/6196#issuecomment-644405572
Will this also work when setting the `init_containers` via the
`pod_mutation_hook` function described here?
https://airflow.apache.org/docs/stable/kubernetes.html#pod-mutation-hook
Example:
```python
def pod_mutation_hook(pod: Pod):
init_container = k8s.V1Container(
name="init-container",
image="ubuntu:16.04",
command=["bash", "-cx"],
args=["echo 10"]
)
pod.init_containers = [init_container]
```
----------------------------------------------------------------
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]
> 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)