Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[backport] Fix bug with
executor_config
and Volumes
Without this fix the following DAG will not create Volumes & Volume Mounts and fais: ```python dag1 = DAG( dag_id='example_k8s-dags', schedule_interval='@once', start_date=datetime(2020, 1, 1) ) p = PythonOperator( task_id='test', dag=dag1, python_callable=lambda: 1, executor_config={ "KubernetesExecutor": { 'resources': { 'limits': {'memory': '200Mi', 'cpu': '100m'}, 'requests': {'memory': '100Mi', 'cpu': '100m'} }, "volumes": [ { "name": "tmp-volume", "hostPath": {"path": "/tmp/"}, }, ], "volume_mounts": [ { "mountPath": "/tmp/", "name": "tmp-volume", }, ], } } ) ``` (cherry picked from commit 7813076)
- Loading branch information