Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong deprecation waring for kubernetes_executor section #31434

Closed
wants to merge 1 commit into from

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented May 19, 2023

We renamed kubernetes to kubernetes_executor in airflow.cfg. But we got it mixed up to show deprecation.

Example:

[2023-05-19, 21:40:47 UTC] {logging_mixin.py:149} WARNING - /usr/local/lib/python3.10/site-packages/airflow/kubernetes/kube_config.py:37 DeprecationWarning: The pod_template_file option in [kubernetes] has been moved to the pod_template_file option in [kubernetes_executor] - the old setting has been used, but please update your config.

In 2.5: https://airflow.apache.org/docs/apache-airflow/stable/release_notes.html#airflow-config-section-kubernetes-renamed-to-kubernetes-executor-26873

PR #26873


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

We renamed `kubernetes` to `kubernetes_executor` in airflow.cfg. But we got it mixed up to show deprecation.

Example:

```
[2023-05-19, 21:40:47 UTC] {logging_mixin.py:149} WARNING - /usr/local/lib/python3.10/site-packages/airflow/kubernetes/kube_config.py:37 DeprecationWarning: The pod_template_file option in [kubernetes] has been moved to the pod_template_file option in [kubernetes_executor] - the old setting has been used, but please update your config.

```
@kaxil kaxil requested review from ashb, jedcunningham and dstandish May 19, 2023 22:02
@kaxil kaxil marked this pull request as draft May 19, 2023 22:39
@kaxil
Copy link
Member Author

kaxil commented May 19, 2023

Tests are failing, I will take a close look

@kaxil
Copy link
Member Author

kaxil commented May 20, 2023

This was issue in my code :( not in Airflow

@kaxil kaxil closed this May 20, 2023
@kaxil kaxil deleted the fix-dep branch May 20, 2023 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants