Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
antonymayi 0d94c8e841 [AIRFLOW-5349] Add schedulername option for KubernetesPodOperator (#6088) 2019-12-17 11:57:08 -08:00
Kamil Breguła 53aa9753c1 [AIRFLOW-6209] Drop gcp_service_account_keys option (#6768)
* [AIRFLOW-6209] Drop gcp_service_account_keys option

* fixup! [AIRFLOW-6209] Drop gcp_service_account_keys option
2019-12-10 14:05:37 -08:00
Jarek Potiuk a36cfe049a
[AIRFLOW-6004] Untangle Executors class to avoid cyclic imports (#6596)
There are cyclic imports detected seemingly randomly by pylint checks when some
    of the PRs are run in CI

    It was not deterministic because pylint usually uses as many processors as
    many are available and it splits the list of .py files between the separate
    pylint processors - depending on how the split is done, pylint check might
    or might not detect it. The cycle is always detected when all files are used.

    In order to make it more deterministic, all pylint and mypy errors were resolved
    in all executors package and in dag_processor.

    At the same time plugins_manager had also been moved out of the executors
    and all of the operators/hooks/sensors/macros because it was also causing
    cyclic dependencies and it's far easier to untangle those dependencies
    in executor when we move the intialisation of all plugins to plugins_manager.

    Additionally require_serial is set in pre-commit configuration to
    make sure cycle detection is deterministic.
2019-12-03 16:02:20 +01:00
Xiaodong 80295af28d
[AIRFLOW-XXX] Fix docstring minor issues in airflow/kubernetes/ (#6708)
* Correct typo in pod_launcher

* Remove param `secrets` in docstring since it's not specified/used

* Always use triple double quotes around docstrings 

https://www.python.org/dev/peps/pep-0257/
For consistency, always use """triple double quotes""" around docstrings
2019-12-03 07:08:31 +08:00
Kaxil Naik a391d5f193
[AIRFLOW-6052] Add TypeHints to kubernetes_pod_operator (#6648) 2019-11-23 16:24:39 +00:00
david cf38ddc057 [AIRFLOW-5873] KubernetesPodOperator fixes and test (#6524)
- `security_context` was missing from docs of `KubernetesPodOperator`
- `KubernetesPodOperator` kwarg `in_cluster` erroneously defaults to
False in comparison to `default_args.py`, also default `do_xcom_push`
 was overwritten to False in contradiction to `BaseOperator`
- `KubernetesPodOperator` kwarg `resources` is erroneously passed to
 `base_operator`, instead should only go to `PodGenerator`. The two
 have different syntax. (both on `master` and `v1-10-test` branches)
- `kubernetes/pod.py`: classes do not have `__slots__`
 so they would accept arbitrary values in `setattr`
- Reduce amount of times the pod object is copied before execution
2019-11-12 22:05:27 +01:00
Kamil Breguła 4903c9730c
[AIRFLOW-5702] Fix common docstring issues (#6372) 2019-10-20 07:28:29 +02:00
Kevin Yang d719e1fd67 [AIRFLOW-5362] Reorder imports (#5944) 2019-10-02 16:30:03 +01:00
Jarek Potiuk 4780105798 [AIRFLOW-5256] Related pylint changes for common licences in python files (#5786) 2019-09-17 13:16:32 +02:00
Kamil Breguła 7b5cf442e4
[AIRFLOW-5445] Reduce the required resources for the Kubernetes's sidecar (#6062) 2019-09-15 23:15:53 +02:00
Kamil Breguła 6b2a290ddf
[AIRFLOW-5443] Use alpine image in Kubernetes's sidecar (#6059) 2019-09-09 14:42:06 +02:00
davlum 17d4179db2 [AIRFLOW-4851] Refactor K8S codebase with k8s API models (#5481)
* [AIRLFOW-4851] refactor Airflow kubernetes

* [AIRFLOW-4851] refactor Airflow k8s models

* [AIRFLOW-4851] Fix linting and tests
* Refactor and add some tests

* [AIRLFOW-4851] Add assertions to PodOperator tests
2019-09-04 16:24:31 -05:00
Ron van Weverwijk 6eb326255d [AIRFLOW-4781] Add the ability to specify ports in kubernetesOperator (#5410)
* [AIRFLOW-4781] Added the ability to specify ports in kubernetesOperator

* [AIRFLOW-4781] Added the ability to specify ports in kubernetesOperator

* [AIRFLOW-4781] Added the ability to specify ports in kubernetesOperator

added docstring

* [AIRFLOW-4781] Added the ability to specify ports in kubernetesOperator

add typehints

Co-Authored-By: Fokko Driesprong <fokko@driesprong.frl>

* [AIRFLOW-4781] Added the ability to specify ports in kubernetesOperator

fixed docstrings and typehints
2019-06-18 13:09:15 +02:00
Daniel Imberman f153bf5367
[AIRFLOW-4487] Move k8s executor from contrib folder to main project (#5261)
* Move k8s executor from contrib folder

Considering that the k8s executor is now fully supported by core
committers, we should move it from contrib to the primary executor
directory.
2019-05-09 16:05:31 -07:00