You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/06/15 21:42:28 UTC

[GitHub] [airflow] prithvisathiya commented on pull request #6196: [AIRFLOW-3152] Kubernetes Pod Operator should support init containers.

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:
users@infra.apache.org