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

Add missing deprecated imports after k8s move #32891

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions airflow/kubernetes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
"pod_launcher_deprecated": {
"PodLauncher": "airflow.providers.cncf.kubernetes.pod_launcher_deprecated.PodLauncher",
"PodStatus": "airflow.providers.cncf.kubernetes.pod_launcher_deprecated.PodStatus",
# imports of imports from other kubernetes modules (in case they are imported from here)
"get_kube_client": "airflow.providers.cncf.kubernetes.kube_client.get_kube_client",
"PodDefaults": "airflow.providers.cncf.kubernetes.pod_generator_deprecated.PodDefaults",
},
"pod_runtime_info_env": {
"PodRuntimeInfoEnv": "airflow.providers.cncf.kubernetes.backcompat."
Expand Down Expand Up @@ -75,6 +78,14 @@
"make_safe_label_value",
"merge_objects": "airflow.kubernetes.pre_7_4_0_compatibility.pod_generator.merge_objects",
"PodGenerator": "airflow.kubernetes.pre_7_4_0_compatibility.pod_generator.PodGenerator",
# imports of imports from other kubernetes modules (in case they are imported from here)
"PodGeneratorDeprecated": "airflow.kubernetes.pre_7_4_0_compatibility."
"pod_generator_deprecated.PodGenerator",
"PodDefaults": "airflow.kubernetes.pre_7_4_0_compatibility.pod_generator_deprecated.PodDefaults",
# those two are inlined in kubernetes.pre_7_4_0_compatibility.pod_generator even if
# originally they were imported in airflow.kubernetes.pod_generator
"add_pod_suffix": "airflow.kubernetes.pre_7_4_0_compatibility.pod_generator.add_pod_suffix",
"rand_str": "airflow.kubernetes.pre_7_4_0_compatibility.pod_generator.rand_str",
},
"pod_generator_deprecated": {
"make_safe_label_value": "airflow.kubernetes.pre_7_4_0_compatibility.pod_generator_deprecated."
Expand All @@ -84,6 +95,8 @@
},
"secret": {
"Secret": "airflow.kubernetes.pre_7_4_0_compatibility.secret.Secret",
# imports of imports from other kubernetes modules (in case they are imported from here)
"K8SModel": "airflow.kubernetes.pre_7_4_0_compatibility.k8s_model.K8SModel",
},
}

Expand Down
Loading