apache / airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
https://airflow.apache.org/
Apache License 2.0
37.34k stars 14.35k forks source link

xCom Templating for init_containers in KubernetesPodOperator #44289

Open dimohammed328 opened 3 days ago

dimohammed328 commented 3 days ago

Description

We should be able to specify the image, cmd, args, etc. fields of init containers as xCom templates. Currently this is not supported.

Use case/motivation

In our dags, we need a pod to have init containers with the image and command of those containers determined dynamically at runtime. Having the ability to pass these from upstream xComs and be able to template them into the PodOperator would be useful here.

Related issues

No response

Are you willing to submit a PR?

Code of Conduct

boring-cyborg[bot] commented 3 days ago

Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.