Lord-Y opened a new pull request #13816:
URL: https://github.com/apache/airflow/pull/13816


   Signed-off-by: Lord-Y <[email protected]>
   
   When trying to debug the generated yaml pod to see why I'm not having the 
right docker image I got this error:
   
   ```
   airflow kubernetes generate-dag-yaml DAG_NAME 2021-01-19T20:00:00+00:00
   
   [2021-01-21 09:52:56,314] {{__init__.py:50}} INFO - Using executor 
KubernetesExecutor
   [2021-01-21 09:52:56,317] {{dagbag.py:417}} INFO - Filling up the DagBag 
from /opt/airflow/dags/airflow-dags.git
   Traceback (most recent call last):
     File "/home/airflow/.local/bin/airflow", line 37, in <module>
       args.func(args)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/cli.py", line 
233, in wrapper
       func(args)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/cli.py", line 
81, in wrapper
       return f(*args, **kwargs)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/bin/cli.py", line 
1367, in kubernetes_generate_dag_yaml
       pod = PodGenerator.construct_pod(
   TypeError: construct_pod() got an unexpected keyword argument 
'kube_executor_config'
   ```
   After fixing `kube_executor_config`, I got the same error for 
`worker_config` parameter and also `kube_image` was missing.


----------------------------------------------------------------
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