incubator-airflow/tests/kubernetes
Daniel Imberman 4e362c1347
K8s yaml templates not rendered by k8sexecutor (#12303)
* K8s yaml templates not rendered by k8sexecutor

There is a bug in the yaml template rendering caused by the logic that
yaml templates are only generated when the current executor is the
k8sexecutor. This is a problem as the templates are generated by the
task pod, which is itself running a LocalExecutor. Also generates a
"base" template if this taskInstance has not run yet.

* fix tests

* fix taskinstance test

* fix taskinstance

* fix pod generator tests

* fix podgen

* Update tests/kubernetes/test_pod_generator.py

Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>

* @ashb comment

Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
2020-11-13 12:06:29 -08:00
..
models Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
__init__.py [AIRFLOW-6714] Remove magic comments about UTF-8 (#7338) 2020-02-02 22:18:19 +01:00
basic_pod.yaml Enforce strict rules for yamllint (#11709) 2020-10-21 12:24:32 +02:00
pod.yaml Move dev docker images to airflow registry (#9652) 2020-09-08 10:07:10 +02:00
pod_generator_base.yaml Simplify the K8sExecutor and K8sPodOperator (#10393) 2020-09-17 08:40:20 -07:00
pod_generator_base_with_secrets.yaml Simplify the K8sExecutor and K8sPodOperator (#10393) 2020-09-17 08:40:20 -07:00
test_client.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_pod_generator.py K8s yaml templates not rendered by k8sexecutor (#12303) 2020-11-13 12:06:29 -08:00
test_pod_launcher.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_refresh_config.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00