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

Move definition of Pod*Exceptions to pod_generator #34346

Merged

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Sep 13, 2023

The #32767 has moved all k8s classes to cncf.kubernetes provider, however there was a mistake with location of Pod*Exceptions - rather than in pod_manager they remained defined in the kubernetes_executor package - which has the side-effect that trying to import them in Airflow Pre 2.7 raised the
"You should not use the provider's executors in this version of Airflow." error.

This change moves the exceptions to the pod_generator package to fix the problem.


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

The apache#32767 has moved all k8s classes to cncf.kubernetes provider,
however there was a mistake with location of Pod*Exceptions - rather
than in pod_manager they remained defined in the kubernetes_executor
package - which has the side-effect that trying to import them
in Airflow Pre 2.7 raised the
"You should not use the provider's executors in this version of
Airflow." error.

This change moves the exceptions to the pod_generator package
to fix the problem.
@potiuk
Copy link
Member Author

potiuk commented Sep 13, 2023

cc: @eladkal --> in case we don't have a reason to release providers soon, that might be one :)

@potiuk potiuk merged commit de92a81 into apache:main Sep 13, 2023
48 checks passed
@potiuk potiuk deleted the move-exceptions-from-k8s-executor-to-pod-manager branch September 13, 2023 18:51
@ephraimbuddy ephraimbuddy added this to the Airflow 2.8.0 milestone Oct 3, 2023
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:cncf-kubernetes Kubernetes provider related issues type:improvement Changelog: Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants