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]


Reply via email to