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/01/08 00:40:18 UTC

[GitHub] [airflow] kaxil opened a new pull request #7097: [AIRFLOW-6504] Allow specifying configmap for Airflow Local Setting

kaxil opened a new pull request #7097: [AIRFLOW-6504] Allow specifying configmap for Airflow Local Setting
URL: https://github.com/apache/airflow/pull/7097
 
 
   Currently `airflow.cfg` file can be passed via ConfigMap using `airflow_configmap` under `[kubernetes]` section setting.
   
   We want to be able to specify `airflow_local_settings.py` via configmap too so that the Kubernetes Worker has this file. We need `airflow_local_settings.py` to specify pod_mutation_hook. 
   
   Without that currently, if we are using `KubernetesExecutor` and have a task with `KubernetesPodOperator`, it will inherit and change Pod using `pod_mutation_hook`
   
   ---
   Issue link: WILL BE INSERTED BY [boring-cyborg](https://github.com/kaxil/boring-cyborg)
   
   - [x] Description above provides context of the change
   - [x] Commit message/PR title starts with `[AIRFLOW-NNNN]`. AIRFLOW-NNNN = JIRA ID<sup>*</sup>
   - [x] Unit tests coverage for changes (not needed for documentation changes)
   - [x] Commits follow "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)"
   - [x] Relevant documentation is updated including usage instructions.
   - [x] I will engage committers as explained in [Contribution Workflow Example](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#contribution-workflow-example).
   
   <sup>*</sup> For document-only changes commit message can start with `[AIRFLOW-XXXX]`.
   
   ---
   In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.md).
   Read the [Pull Request Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines) for more information.
   

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


With regards,
Apache Git Services

[GitHub] [airflow] kaxil merged pull request #7097: [AIRFLOW-6504] Allow specifying configmap for Airflow Local Setting

Posted by GitBox <gi...@apache.org>.
kaxil merged pull request #7097: [AIRFLOW-6504] Allow specifying configmap for Airflow Local Setting
URL: https://github.com/apache/airflow/pull/7097
 
 
   

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


With regards,
Apache Git Services

[GitHub] [airflow] codecov-io edited a comment on issue #7097: [AIRFLOW-6504] Allow specifying configmap for Airflow Local Setting

Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #7097: [AIRFLOW-6504] Allow specifying configmap for Airflow Local Setting
URL: https://github.com/apache/airflow/pull/7097#issuecomment-571853779
 
 
   # [Codecov](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=h1) Report
   > Merging [#7097](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=desc) into [master](https://codecov.io/gh/apache/airflow/commit/fe20ef6147f157b7c963ad46e13aff7c16458632?src=pr&el=desc) will **increase** coverage by `<.01%`.
   > The diff coverage is `100%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/airflow/pull/7097/graphs/tree.svg?width=650&token=WdLKlKHOAU&height=150&src=pr)](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master    #7097      +/-   ##
   ==========================================
   + Coverage   85.15%   85.15%   +<.01%     
   ==========================================
     Files         680      680              
     Lines       38824    38832       +8     
   ==========================================
   + Hits        33061    33069       +8     
     Misses       5763     5763
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [airflow/kubernetes/worker\_configuration.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3dvcmtlcl9jb25maWd1cmF0aW9uLnB5) | `99.29% <100%> (+0.03%)` | :arrow_up: |
   | [airflow/executors/kubernetes\_executor.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9leGVjdXRvcnMva3ViZXJuZXRlc19leGVjdXRvci5weQ==) | `57.57% <100%> (+0.09%)` | :arrow_up: |
   | [airflow/operators/postgres\_operator.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9vcGVyYXRvcnMvcG9zdGdyZXNfb3BlcmF0b3IucHk=) | `100% <0%> (ø)` | :arrow_up: |
   | [airflow/utils/sqlalchemy.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy91dGlscy9zcWxhbGNoZW15LnB5) | `96.66% <0%> (ø)` | :arrow_up: |
   | [airflow/hooks/dbapi\_hook.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9ob29rcy9kYmFwaV9ob29rLnB5) | `91.73% <0%> (ø)` | :arrow_up: |
   | [airflow/hooks/postgres\_hook.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9ob29rcy9wb3N0Z3Jlc19ob29rLnB5) | `94.36% <0%> (ø)` | :arrow_up: |
   | [airflow/jobs/backfill\_job.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9qb2JzL2JhY2tmaWxsX2pvYi5weQ==) | `91.88% <0%> (ø)` | :arrow_up: |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=footer). Last update [fe20ef6...a4f961b](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   

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


With regards,
Apache Git Services

[GitHub] [airflow] codecov-io edited a comment on issue #7097: [AIRFLOW-6504] Allow specifying configmap for Airflow Local Setting

Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #7097: [AIRFLOW-6504] Allow specifying configmap for Airflow Local Setting
URL: https://github.com/apache/airflow/pull/7097#issuecomment-571853779
 
 
   # [Codecov](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=h1) Report
   > Merging [#7097](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=desc) into [master](https://codecov.io/gh/apache/airflow/commit/fe20ef6147f157b7c963ad46e13aff7c16458632?src=pr&el=desc) will **decrease** coverage by `0.06%`.
   > The diff coverage is `100%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/airflow/pull/7097/graphs/tree.svg?width=650&token=WdLKlKHOAU&height=150&src=pr)](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master    #7097      +/-   ##
   ==========================================
   - Coverage   85.15%   85.08%   -0.07%     
   ==========================================
     Files         680      680              
     Lines       38824    38832       +8     
   ==========================================
   - Hits        33061    33042      -19     
   - Misses       5763     5790      +27
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [airflow/kubernetes/worker\_configuration.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3dvcmtlcl9jb25maWd1cmF0aW9uLnB5) | `99.29% <100%> (+0.03%)` | :arrow_up: |
   | [airflow/executors/kubernetes\_executor.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9leGVjdXRvcnMva3ViZXJuZXRlc19leGVjdXRvci5weQ==) | `57.57% <100%> (+0.09%)` | :arrow_up: |
   | [airflow/operators/postgres\_operator.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9vcGVyYXRvcnMvcG9zdGdyZXNfb3BlcmF0b3IucHk=) | `0% <0%> (-100%)` | :arrow_down: |
   | [airflow/utils/sqlalchemy.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy91dGlscy9zcWxhbGNoZW15LnB5) | `95% <0%> (-1.67%)` | :arrow_down: |
   | [airflow/hooks/dbapi\_hook.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9ob29rcy9kYmFwaV9ob29rLnB5) | `90.08% <0%> (-1.66%)` | :arrow_down: |
   | [airflow/hooks/postgres\_hook.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9ob29rcy9wb3N0Z3Jlc19ob29rLnB5) | `92.95% <0%> (-1.41%)` | :arrow_down: |
   | [airflow/jobs/backfill\_job.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9qb2JzL2JhY2tmaWxsX2pvYi5weQ==) | `91.59% <0%> (-0.29%)` | :arrow_down: |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=footer). Last update [fe20ef6...a4f961b](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   

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


With regards,
Apache Git Services

[GitHub] [airflow] codecov-io commented on issue #7097: [AIRFLOW-6504] Allow specifying configmap for Airflow Local Setting

Posted by GitBox <gi...@apache.org>.
codecov-io commented on issue #7097: [AIRFLOW-6504] Allow specifying configmap for Airflow Local Setting
URL: https://github.com/apache/airflow/pull/7097#issuecomment-571853779
 
 
   # [Codecov](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=h1) Report
   > Merging [#7097](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=desc) into [master](https://codecov.io/gh/apache/airflow/commit/fe20ef6147f157b7c963ad46e13aff7c16458632?src=pr&el=desc) will **increase** coverage by `<.01%`.
   > The diff coverage is `100%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/airflow/pull/7097/graphs/tree.svg?width=650&token=WdLKlKHOAU&height=150&src=pr)](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master    #7097      +/-   ##
   ==========================================
   + Coverage   85.15%   85.15%   +<.01%     
   ==========================================
     Files         680      680              
     Lines       38824    38832       +8     
   ==========================================
   + Hits        33061    33069       +8     
     Misses       5763     5763
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [airflow/kubernetes/worker\_configuration.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9rdWJlcm5ldGVzL3dvcmtlcl9jb25maWd1cmF0aW9uLnB5) | `99.29% <100%> (+0.03%)` | :arrow_up: |
   | [airflow/executors/kubernetes\_executor.py](https://codecov.io/gh/apache/airflow/pull/7097/diff?src=pr&el=tree#diff-YWlyZmxvdy9leGVjdXRvcnMva3ViZXJuZXRlc19leGVjdXRvci5weQ==) | `57.57% <100%> (+0.09%)` | :arrow_up: |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=footer). Last update [fe20ef6...962ee8a](https://codecov.io/gh/apache/airflow/pull/7097?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   

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


With regards,
Apache Git Services