---
source: crates/ruff_linter/src/rules/airflow/mod.rs
---
AIR302_kubernetes.py:22:1: AIR302 [*] `airflow.executors.kubernetes_executor_types.ALL_NAMESPACES` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
20 | )
21 |
22 | ALL_NAMESPACES
   | ^^^^^^^^^^^^^^ AIR302
23 | POD_EXECUTOR_DONE_KEY
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `ALL_NAMESPACES` from `airflow.providers.cncf.kubernetes.executors.kubernetes_executor_types` instead.

ℹ Unsafe fix
1  1  | from __future__ import annotations
2  2  | 
3  3  | from airflow.executors.kubernetes_executor_types import (
4     |-    ALL_NAMESPACES,
5  4  |     POD_EXECUTOR_DONE_KEY,
6  5  | )
7  6  | from airflow.kubernetes.k8s_model import (
--------------------------------------------------------------------------------
18 17 |     annotations_for_logging_task_metadata,
19 18 |     create_pod_id,
20 19 | )
   20 |+from airflow.providers.cncf.kubernetes.executors.kubernetes_executor_types import ALL_NAMESPACES
21 21 | 
22 22 | ALL_NAMESPACES
23 23 | POD_EXECUTOR_DONE_KEY

AIR302_kubernetes.py:23:1: AIR302 [*] `airflow.executors.kubernetes_executor_types.POD_EXECUTOR_DONE_KEY` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
22 | ALL_NAMESPACES
23 | POD_EXECUTOR_DONE_KEY
   | ^^^^^^^^^^^^^^^^^^^^^ AIR302
24 |
25 | K8SModel()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `POD_EXECUTOR_DONE_KEY` from `airflow.providers.cncf.kubernetes.executors.kubernetes_executor_types` instead.

ℹ Unsafe fix
2  2  | 
3  3  | from airflow.executors.kubernetes_executor_types import (
4  4  |     ALL_NAMESPACES,
5     |-    POD_EXECUTOR_DONE_KEY,
6  5  | )
7  6  | from airflow.kubernetes.k8s_model import (
8  7  |     K8SModel,
--------------------------------------------------------------------------------
18 17 |     annotations_for_logging_task_metadata,
19 18 |     create_pod_id,
20 19 | )
   20 |+from airflow.providers.cncf.kubernetes.executors.kubernetes_executor_types import POD_EXECUTOR_DONE_KEY
21 21 | 
22 22 | ALL_NAMESPACES
23 23 | POD_EXECUTOR_DONE_KEY

AIR302_kubernetes.py:25:1: AIR302 [*] `airflow.kubernetes.k8s_model.K8SModel` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
23 | POD_EXECUTOR_DONE_KEY
24 |
25 | K8SModel()
   | ^^^^^^^^ AIR302
26 | append_to_pod()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `K8SModel` from `airflow.providers.cncf.kubernetes.k8s_model` instead.

ℹ Unsafe fix
5  5  |     POD_EXECUTOR_DONE_KEY,
6  6  | )
7  7  | from airflow.kubernetes.k8s_model import (
8     |-    K8SModel,
9  8  |     append_to_pod,
10 9  | )
11 10 | from airflow.kubernetes.kube_client import (
--------------------------------------------------------------------------------
18 17 |     annotations_for_logging_task_metadata,
19 18 |     create_pod_id,
20 19 | )
   20 |+from airflow.providers.cncf.kubernetes.k8s_model import K8SModel
21 21 | 
22 22 | ALL_NAMESPACES
23 23 | POD_EXECUTOR_DONE_KEY

AIR302_kubernetes.py:26:1: AIR302 [*] `airflow.kubernetes.k8s_model.append_to_pod` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
25 | K8SModel()
26 | append_to_pod()
   | ^^^^^^^^^^^^^ AIR302
27 |
28 | _disable_verify_ssl()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `append_to_pod` from `airflow.providers.cncf.kubernetes.k8s_model` instead.

ℹ Unsafe fix
6  6  | )
7  7  | from airflow.kubernetes.k8s_model import (
8  8  |     K8SModel,
9     |-    append_to_pod,
10 9  | )
11 10 | from airflow.kubernetes.kube_client import (
12 11 |     _disable_verify_ssl,
--------------------------------------------------------------------------------
18 17 |     annotations_for_logging_task_metadata,
19 18 |     create_pod_id,
20 19 | )
   20 |+from airflow.providers.cncf.kubernetes.k8s_model import append_to_pod
21 21 | 
22 22 | ALL_NAMESPACES
23 23 | POD_EXECUTOR_DONE_KEY

AIR302_kubernetes.py:28:1: AIR302 [*] `airflow.kubernetes.kube_client._disable_verify_ssl` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
26 | append_to_pod()
27 |
28 | _disable_verify_ssl()
   | ^^^^^^^^^^^^^^^^^^^ AIR302
29 | _enable_tcp_keepalive()
30 | get_kube_client()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `_disable_verify_ssl` from `airflow.providers.cncf.kubernetes.kube_client` instead.

ℹ Unsafe fix
9  9  |     append_to_pod,
10 10 | )
11 11 | from airflow.kubernetes.kube_client import (
12    |-    _disable_verify_ssl,
13 12 |     _enable_tcp_keepalive,
14 13 |     get_kube_client,
15 14 | )
--------------------------------------------------------------------------------
18 17 |     annotations_for_logging_task_metadata,
19 18 |     create_pod_id,
20 19 | )
   20 |+from airflow.providers.cncf.kubernetes.kube_client import _disable_verify_ssl
21 21 | 
22 22 | ALL_NAMESPACES
23 23 | POD_EXECUTOR_DONE_KEY

AIR302_kubernetes.py:29:1: AIR302 [*] `airflow.kubernetes.kube_client._enable_tcp_keepalive` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
28 | _disable_verify_ssl()
29 | _enable_tcp_keepalive()
   | ^^^^^^^^^^^^^^^^^^^^^ AIR302
30 | get_kube_client()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `_enable_tcp_keepalive` from `airflow.providers.cncf.kubernetes.kube_client` instead.

ℹ Unsafe fix
10 10 | )
11 11 | from airflow.kubernetes.kube_client import (
12 12 |     _disable_verify_ssl,
13    |-    _enable_tcp_keepalive,
14 13 |     get_kube_client,
15 14 | )
16 15 | from airflow.kubernetes.kubernetes_helper_functions import (
--------------------------------------------------------------------------------
18 17 |     annotations_for_logging_task_metadata,
19 18 |     create_pod_id,
20 19 | )
   20 |+from airflow.providers.cncf.kubernetes.kube_client import _enable_tcp_keepalive
21 21 | 
22 22 | ALL_NAMESPACES
23 23 | POD_EXECUTOR_DONE_KEY

AIR302_kubernetes.py:30:1: AIR302 [*] `airflow.kubernetes.kube_client.get_kube_client` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
28 | _disable_verify_ssl()
29 | _enable_tcp_keepalive()
30 | get_kube_client()
   | ^^^^^^^^^^^^^^^ AIR302
31 |
32 | add_pod_suffix()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `get_kube_client` from `airflow.providers.cncf.kubernetes.kube_client` instead.

ℹ Unsafe fix
11 11 | from airflow.kubernetes.kube_client import (
12 12 |     _disable_verify_ssl,
13 13 |     _enable_tcp_keepalive,
14    |-    get_kube_client,
15 14 | )
16 15 | from airflow.kubernetes.kubernetes_helper_functions import (
17 16 |     add_pod_suffix,
18 17 |     annotations_for_logging_task_metadata,
19 18 |     create_pod_id,
20 19 | )
   20 |+from airflow.providers.cncf.kubernetes.kube_client import get_kube_client
21 21 | 
22 22 | ALL_NAMESPACES
23 23 | POD_EXECUTOR_DONE_KEY

AIR302_kubernetes.py:32:1: AIR302 [*] `airflow.kubernetes.kubernetes_helper_functions.add_pod_suffix` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
30 | get_kube_client()
31 |
32 | add_pod_suffix()
   | ^^^^^^^^^^^^^^ AIR302
33 | annotations_for_logging_task_metadata()
34 | create_pod_id()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=10.0.0` and use `add_unique_suffix` from `airflow.providers.cncf.kubernetes.kubernetes_helper_functions` instead.

ℹ Safe fix
18 18 |     annotations_for_logging_task_metadata,
19 19 |     create_pod_id,
20 20 | )
   21 |+from airflow.providers.cncf.kubernetes.kubernetes_helper_functions import add_unique_suffix
21 22 | 
22 23 | ALL_NAMESPACES
23 24 | POD_EXECUTOR_DONE_KEY
--------------------------------------------------------------------------------
29 30 | _enable_tcp_keepalive()
30 31 | get_kube_client()
31 32 | 
32    |-add_pod_suffix()
   33 |+add_unique_suffix()
33 34 | annotations_for_logging_task_metadata()
34 35 | create_pod_id()
35 36 | 

AIR302_kubernetes.py:33:1: AIR302 [*] `airflow.kubernetes.kubernetes_helper_functions.annotations_for_logging_task_metadata` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
32 | add_pod_suffix()
33 | annotations_for_logging_task_metadata()
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AIR302
34 | create_pod_id()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `annotations_for_logging_task_metadata` from `airflow.providers.cncf.kubernetes.kubernetes_helper_functions` instead.

ℹ Unsafe fix
15 15 | )
16 16 | from airflow.kubernetes.kubernetes_helper_functions import (
17 17 |     add_pod_suffix,
18    |-    annotations_for_logging_task_metadata,
19 18 |     create_pod_id,
20 19 | )
   20 |+from airflow.providers.cncf.kubernetes.kubernetes_helper_functions import annotations_for_logging_task_metadata
21 21 | 
22 22 | ALL_NAMESPACES
23 23 | POD_EXECUTOR_DONE_KEY

AIR302_kubernetes.py:34:1: AIR302 [*] `airflow.kubernetes.kubernetes_helper_functions.create_pod_id` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
32 | add_pod_suffix()
33 | annotations_for_logging_task_metadata()
34 | create_pod_id()
   | ^^^^^^^^^^^^^ AIR302
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=10.0.0` and use `create_unique_id` from `airflow.providers.cncf.kubernetes.kubernetes_helper_functions` instead.

ℹ Safe fix
18 18 |     annotations_for_logging_task_metadata,
19 19 |     create_pod_id,
20 20 | )
   21 |+from airflow.providers.cncf.kubernetes.kubernetes_helper_functions import create_unique_id
21 22 | 
22 23 | ALL_NAMESPACES
23 24 | POD_EXECUTOR_DONE_KEY
--------------------------------------------------------------------------------
31 32 | 
32 33 | add_pod_suffix()
33 34 | annotations_for_logging_task_metadata()
34    |-create_pod_id()
   35 |+create_unique_id()
35 36 | 
36 37 | 
37 38 | from airflow.kubernetes.pod_generator import (

AIR302_kubernetes.py:49:1: AIR302 [*] `airflow.kubernetes.pod_generator.PodDefaults` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
47 | )
48 |
49 | PodDefaults()
   | ^^^^^^^^^^^ AIR302
50 | PodGenerator()
51 | add_pod_suffix()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `PodDefaults` from `airflow.providers.cncf.kubernetes.utils.xcom_sidecar` instead.

ℹ Unsafe fix
35 35 | 
36 36 | 
37 37 | from airflow.kubernetes.pod_generator import (
38    |-    PodDefaults,
39 38 |     PodGenerator,
40 39 |     add_pod_suffix,
41 40 |     datetime_to_label_safe_datestring,
--------------------------------------------------------------------------------
45 44 |     merge_objects,
46 45 |     rand_str,
47 46 | )
   47 |+from airflow.providers.cncf.kubernetes.utils.xcom_sidecar import PodDefaults
48 48 | 
49 49 | PodDefaults()
50 50 | PodGenerator()

AIR302_kubernetes.py:50:1: AIR302 [*] `airflow.kubernetes.pod_generator.PodGenerator` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
49 | PodDefaults()
50 | PodGenerator()
   | ^^^^^^^^^^^^ AIR302
51 | add_pod_suffix()
52 | datetime_to_label_safe_datestring()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `PodGenerator` from `airflow.providers.cncf.kubernetes.pod_generator` instead.

ℹ Unsafe fix
36 36 | 
37 37 | from airflow.kubernetes.pod_generator import (
38 38 |     PodDefaults,
39    |-    PodGenerator,
40 39 |     add_pod_suffix,
41 40 |     datetime_to_label_safe_datestring,
42 41 |     extend_object_field,
--------------------------------------------------------------------------------
45 44 |     merge_objects,
46 45 |     rand_str,
47 46 | )
   47 |+from airflow.providers.cncf.kubernetes.pod_generator import PodGenerator
48 48 | 
49 49 | PodDefaults()
50 50 | PodGenerator()

AIR302_kubernetes.py:51:1: AIR302 [*] `airflow.kubernetes.pod_generator.add_pod_suffix` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
49 | PodDefaults()
50 | PodGenerator()
51 | add_pod_suffix()
   | ^^^^^^^^^^^^^^ AIR302
52 | datetime_to_label_safe_datestring()
53 | extend_object_field()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=10.0.0` and use `add_unique_suffix` from `airflow.providers.cncf.kubernetes.kubernetes_helper_functions` instead.

ℹ Safe fix
45 45 |     merge_objects,
46 46 |     rand_str,
47 47 | )
   48 |+from airflow.providers.cncf.kubernetes.kubernetes_helper_functions import add_unique_suffix
48 49 | 
49 50 | PodDefaults()
50 51 | PodGenerator()
51    |-add_pod_suffix()
   52 |+add_unique_suffix()
52 53 | datetime_to_label_safe_datestring()
53 54 | extend_object_field()
54 55 | label_safe_datestring_to_datetime()

AIR302_kubernetes.py:52:1: AIR302 [*] `airflow.kubernetes.pod_generator.datetime_to_label_safe_datestring` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
50 | PodGenerator()
51 | add_pod_suffix()
52 | datetime_to_label_safe_datestring()
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AIR302
53 | extend_object_field()
54 | label_safe_datestring_to_datetime()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `datetime_to_label_safe_datestring` from `airflow.providers.cncf.kubernetes.pod_generator` instead.

ℹ Unsafe fix
38 38 |     PodDefaults,
39 39 |     PodGenerator,
40 40 |     add_pod_suffix,
41    |-    datetime_to_label_safe_datestring,
42 41 |     extend_object_field,
43 42 |     label_safe_datestring_to_datetime,
44 43 |     make_safe_label_value,
45 44 |     merge_objects,
46 45 |     rand_str,
47 46 | )
   47 |+from airflow.providers.cncf.kubernetes.pod_generator import datetime_to_label_safe_datestring
48 48 | 
49 49 | PodDefaults()
50 50 | PodGenerator()

AIR302_kubernetes.py:53:1: AIR302 [*] `airflow.kubernetes.pod_generator.extend_object_field` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
51 | add_pod_suffix()
52 | datetime_to_label_safe_datestring()
53 | extend_object_field()
   | ^^^^^^^^^^^^^^^^^^^ AIR302
54 | label_safe_datestring_to_datetime()
55 | make_safe_label_value()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `extend_object_field` from `airflow.providers.cncf.kubernetes.pod_generator` instead.

ℹ Unsafe fix
39 39 |     PodGenerator,
40 40 |     add_pod_suffix,
41 41 |     datetime_to_label_safe_datestring,
42    |-    extend_object_field,
43 42 |     label_safe_datestring_to_datetime,
44 43 |     make_safe_label_value,
45 44 |     merge_objects,
46 45 |     rand_str,
47 46 | )
   47 |+from airflow.providers.cncf.kubernetes.pod_generator import extend_object_field
48 48 | 
49 49 | PodDefaults()
50 50 | PodGenerator()

AIR302_kubernetes.py:54:1: AIR302 [*] `airflow.kubernetes.pod_generator.label_safe_datestring_to_datetime` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
52 | datetime_to_label_safe_datestring()
53 | extend_object_field()
54 | label_safe_datestring_to_datetime()
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AIR302
55 | make_safe_label_value()
56 | merge_objects()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `label_safe_datestring_to_datetime` from `airflow.providers.cncf.kubernetes.pod_generator` instead.

ℹ Unsafe fix
40 40 |     add_pod_suffix,
41 41 |     datetime_to_label_safe_datestring,
42 42 |     extend_object_field,
43    |-    label_safe_datestring_to_datetime,
44 43 |     make_safe_label_value,
45 44 |     merge_objects,
46 45 |     rand_str,
47 46 | )
   47 |+from airflow.providers.cncf.kubernetes.pod_generator import label_safe_datestring_to_datetime
48 48 | 
49 49 | PodDefaults()
50 50 | PodGenerator()

AIR302_kubernetes.py:55:1: AIR302 [*] `airflow.kubernetes.pod_generator.make_safe_label_value` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
53 | extend_object_field()
54 | label_safe_datestring_to_datetime()
55 | make_safe_label_value()
   | ^^^^^^^^^^^^^^^^^^^^^ AIR302
56 | merge_objects()
57 | rand_str()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `make_safe_label_value` from `airflow.providers.cncf.kubernetes.pod_generator` instead.

ℹ Unsafe fix
41 41 |     datetime_to_label_safe_datestring,
42 42 |     extend_object_field,
43 43 |     label_safe_datestring_to_datetime,
44    |-    make_safe_label_value,
45 44 |     merge_objects,
46 45 |     rand_str,
47 46 | )
   47 |+from airflow.providers.cncf.kubernetes.pod_generator import make_safe_label_value
48 48 | 
49 49 | PodDefaults()
50 50 | PodGenerator()

AIR302_kubernetes.py:56:1: AIR302 [*] `airflow.kubernetes.pod_generator.merge_objects` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
54 | label_safe_datestring_to_datetime()
55 | make_safe_label_value()
56 | merge_objects()
   | ^^^^^^^^^^^^^ AIR302
57 | rand_str()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `merge_objects` from `airflow.providers.cncf.kubernetes.pod_generator` instead.

ℹ Unsafe fix
42 42 |     extend_object_field,
43 43 |     label_safe_datestring_to_datetime,
44 44 |     make_safe_label_value,
45    |-    merge_objects,
46 45 |     rand_str,
47 46 | )
   47 |+from airflow.providers.cncf.kubernetes.pod_generator import merge_objects
48 48 | 
49 49 | PodDefaults()
50 50 | PodGenerator()

AIR302_kubernetes.py:57:1: AIR302 [*] `airflow.kubernetes.pod_generator.rand_str` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
55 | make_safe_label_value()
56 | merge_objects()
57 | rand_str()
   | ^^^^^^^^ AIR302
58 |
59 | from airflow.kubernetes.pod_generator_deprecated import (
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `rand_str` from `airflow.providers.cncf.kubernetes.kubernetes_helper_functions` instead.

ℹ Unsafe fix
43 43 |     label_safe_datestring_to_datetime,
44 44 |     make_safe_label_value,
45 45 |     merge_objects,
46    |-    rand_str,
47 46 | )
   47 |+from airflow.providers.cncf.kubernetes.kubernetes_helper_functions import rand_str
48 48 | 
49 49 | PodDefaults()
50 50 | PodGenerator()

AIR302_kubernetes.py:69:1: AIR302 [*] `airflow.kubernetes.pod_generator_deprecated.PodDefaults` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
67 | )
68 |
69 | PodDefaults()
   | ^^^^^^^^^^^ AIR302
70 | PodGenerator()
71 | make_safe_label_value()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `PodDefaults` from `airflow.providers.cncf.kubernetes.utils.xcom_sidecar` instead.

ℹ Unsafe fix
57 57 | rand_str()
58 58 | 
59 59 | from airflow.kubernetes.pod_generator_deprecated import (
60    |-    PodDefaults,
61 60 |     PodGenerator,
62 61 |     make_safe_label_value,
63 62 | )
--------------------------------------------------------------------------------
65 64 |     PodLauncher,
66 65 |     PodStatus,
67 66 | )
   67 |+from airflow.providers.cncf.kubernetes.utils.xcom_sidecar import PodDefaults
68 68 | 
69 69 | PodDefaults()
70 70 | PodGenerator()

AIR302_kubernetes.py:70:1: AIR302 [*] `airflow.kubernetes.pod_generator_deprecated.PodGenerator` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
69 | PodDefaults()
70 | PodGenerator()
   | ^^^^^^^^^^^^ AIR302
71 | make_safe_label_value()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `PodGenerator` from `airflow.providers.cncf.kubernetes.pod_generator` instead.

ℹ Unsafe fix
58 58 | 
59 59 | from airflow.kubernetes.pod_generator_deprecated import (
60 60 |     PodDefaults,
61    |-    PodGenerator,
62 61 |     make_safe_label_value,
63 62 | )
64 63 | from airflow.kubernetes.pod_launcher import (
65 64 |     PodLauncher,
66 65 |     PodStatus,
67 66 | )
   67 |+from airflow.providers.cncf.kubernetes.pod_generator import PodGenerator
68 68 | 
69 69 | PodDefaults()
70 70 | PodGenerator()

AIR302_kubernetes.py:71:1: AIR302 [*] `airflow.kubernetes.pod_generator_deprecated.make_safe_label_value` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
69 | PodDefaults()
70 | PodGenerator()
71 | make_safe_label_value()
   | ^^^^^^^^^^^^^^^^^^^^^ AIR302
72 |
73 | PodLauncher()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `make_safe_label_value` from `airflow.providers.cncf.kubernetes.pod_generator` instead.

ℹ Unsafe fix
59 59 | from airflow.kubernetes.pod_generator_deprecated import (
60 60 |     PodDefaults,
61 61 |     PodGenerator,
62    |-    make_safe_label_value,
63 62 | )
64 63 | from airflow.kubernetes.pod_launcher import (
65 64 |     PodLauncher,
66 65 |     PodStatus,
67 66 | )
   67 |+from airflow.providers.cncf.kubernetes.pod_generator import make_safe_label_value
68 68 | 
69 69 | PodDefaults()
70 70 | PodGenerator()

AIR302_kubernetes.py:73:1: AIR302 [*] `airflow.kubernetes.pod_launcher.PodLauncher` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
71 | make_safe_label_value()
72 |
73 | PodLauncher()
   | ^^^^^^^^^^^ AIR302
74 | PodStatus()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=3.0.0` and use `PodManager` from `airflow.providers.cncf.kubernetes.utils.pod_manager` instead.

ℹ Safe fix
65 65 |     PodLauncher,
66 66 |     PodStatus,
67 67 | )
   68 |+from airflow.providers.cncf.kubernetes.utils.pod_manager import PodManager
68 69 | 
69 70 | PodDefaults()
70 71 | PodGenerator()
71 72 | make_safe_label_value()
72 73 | 
73    |-PodLauncher()
   74 |+PodManager()
74 75 | PodStatus()
75 76 | 
76 77 | from airflow.kubernetes.pod_launcher_deprecated import (

AIR302_kubernetes.py:74:1: AIR302 [*] `airflow.kubernetes.pod_launcher.PodStatus` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
73 | PodLauncher()
74 | PodStatus()
   | ^^^^^^^^^ AIR302
75 |
76 | from airflow.kubernetes.pod_launcher_deprecated import (
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=3.0.0` and use `PodPhase` from ` airflow.providers.cncf.kubernetes.utils.pod_manager` instead.

ℹ Safe fix
65 65 |     PodLauncher,
66 66 |     PodStatus,
67 67 | )
   68 |+from  airflow.providers.cncf.kubernetes.utils.pod_manager import PodPhase
68 69 | 
69 70 | PodDefaults()
70 71 | PodGenerator()
71 72 | make_safe_label_value()
72 73 | 
73 74 | PodLauncher()
74    |-PodStatus()
   75 |+PodPhase()
75 76 | 
76 77 | from airflow.kubernetes.pod_launcher_deprecated import (
77 78 |     PodDefaults,

AIR302_kubernetes.py:90:1: AIR302 [*] `airflow.kubernetes.pod_launcher_deprecated.PodDefaults` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
88 | from airflow.kubernetes.volume_mount import VolumeMount
89 |
90 | PodDefaults()
   | ^^^^^^^^^^^ AIR302
91 | PodLauncher()
92 | PodStatus()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `PodDefaults` from `airflow.providers.cncf.kubernetes.utils.xcom_sidecar` instead.

ℹ Unsafe fix
74 74 | PodStatus()
75 75 | 
76 76 | from airflow.kubernetes.pod_launcher_deprecated import (
77    |-    PodDefaults,
78 77 |     PodLauncher,
79 78 |     PodStatus,
80 79 |     get_kube_client,
--------------------------------------------------------------------------------
86 85 | )
87 86 | from airflow.kubernetes.volume import Volume
88 87 | from airflow.kubernetes.volume_mount import VolumeMount
   88 |+from airflow.providers.cncf.kubernetes.utils.xcom_sidecar import PodDefaults
89 89 | 
90 90 | PodDefaults()
91 91 | PodLauncher()

AIR302_kubernetes.py:91:1: AIR302 [*] `airflow.kubernetes.pod_launcher_deprecated.PodLauncher` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
90 | PodDefaults()
91 | PodLauncher()
   | ^^^^^^^^^^^ AIR302
92 | PodStatus()
93 | get_kube_client()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=3.0.0` and use `PodManager` from `airflow.providers.cncf.kubernetes.utils.pod_manager` instead.

ℹ Safe fix
86 86 | )
87 87 | from airflow.kubernetes.volume import Volume
88 88 | from airflow.kubernetes.volume_mount import VolumeMount
   89 |+from airflow.providers.cncf.kubernetes.utils.pod_manager import PodManager
89 90 | 
90 91 | PodDefaults()
91    |-PodLauncher()
   92 |+PodManager()
92 93 | PodStatus()
93 94 | get_kube_client()
94 95 | 

AIR302_kubernetes.py:92:1: AIR302 [*] `airflow.kubernetes.pod_launcher_deprecated.PodStatus` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
90 | PodDefaults()
91 | PodLauncher()
92 | PodStatus()
   | ^^^^^^^^^ AIR302
93 | get_kube_client()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=3.0.0` and use `PodPhase` from ` airflow.providers.cncf.kubernetes.utils.pod_manager` instead.

ℹ Safe fix
86 86 | )
87 87 | from airflow.kubernetes.volume import Volume
88 88 | from airflow.kubernetes.volume_mount import VolumeMount
   89 |+from  airflow.providers.cncf.kubernetes.utils.pod_manager import PodPhase
89 90 | 
90 91 | PodDefaults()
91 92 | PodLauncher()
92    |-PodStatus()
   93 |+PodPhase()
93 94 | get_kube_client()
94 95 | 
95 96 | PodRuntimeInfoEnv()

AIR302_kubernetes.py:93:1: AIR302 [*] `airflow.kubernetes.pod_launcher_deprecated.get_kube_client` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
91 | PodLauncher()
92 | PodStatus()
93 | get_kube_client()
   | ^^^^^^^^^^^^^^^ AIR302
94 |
95 | PodRuntimeInfoEnv()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `get_kube_client` from `airflow.providers.cncf.kubernetes.kube_client` instead.

ℹ Unsafe fix
77 77 |     PodDefaults,
78 78 |     PodLauncher,
79 79 |     PodStatus,
80    |-    get_kube_client,
81 80 | )
82 81 | from airflow.kubernetes.pod_runtime_info_env import PodRuntimeInfoEnv
83 82 | from airflow.kubernetes.secret import (
--------------------------------------------------------------------------------
86 85 | )
87 86 | from airflow.kubernetes.volume import Volume
88 87 | from airflow.kubernetes.volume_mount import VolumeMount
   88 |+from airflow.providers.cncf.kubernetes.kube_client import get_kube_client
89 89 | 
90 90 | PodDefaults()
91 91 | PodLauncher()

AIR302_kubernetes.py:95:1: AIR302 [*] `airflow.kubernetes.pod_runtime_info_env.PodRuntimeInfoEnv` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
93 | get_kube_client()
94 |
95 | PodRuntimeInfoEnv()
   | ^^^^^^^^^^^^^^^^^ AIR302
96 | K8SModel()
97 | Secret()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `V1EnvVar` from `kubernetes.client.models` instead.

ℹ Safe fix
86 86 | )
87 87 | from airflow.kubernetes.volume import Volume
88 88 | from airflow.kubernetes.volume_mount import VolumeMount
   89 |+from kubernetes.client.models import V1EnvVar
89 90 | 
90 91 | PodDefaults()
91 92 | PodLauncher()
92 93 | PodStatus()
93 94 | get_kube_client()
94 95 | 
95    |-PodRuntimeInfoEnv()
   96 |+V1EnvVar()
96 97 | K8SModel()
97 98 | Secret()
98 99 | Volume()

AIR302_kubernetes.py:96:1: AIR302 [*] `airflow.kubernetes.secret.K8SModel` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
95 | PodRuntimeInfoEnv()
96 | K8SModel()
   | ^^^^^^^^ AIR302
97 | Secret()
98 | Volume()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `K8SModel` from `airflow.providers.cncf.kubernetes.k8s_model` instead.

ℹ Unsafe fix
81 81 | )
82 82 | from airflow.kubernetes.pod_runtime_info_env import PodRuntimeInfoEnv
83 83 | from airflow.kubernetes.secret import (
84    |-    K8SModel,
85 84 |     Secret,
86 85 | )
87 86 | from airflow.kubernetes.volume import Volume
88 87 | from airflow.kubernetes.volume_mount import VolumeMount
   88 |+from airflow.providers.cncf.kubernetes.k8s_model import K8SModel
89 89 | 
90 90 | PodDefaults()
91 91 | PodLauncher()

AIR302_kubernetes.py:97:1: AIR302 [*] `airflow.kubernetes.secret.Secret` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
95 | PodRuntimeInfoEnv()
96 | K8SModel()
97 | Secret()
   | ^^^^^^ AIR302
98 | Volume()
99 | VolumeMount()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `Secret` from `airflow.providers.cncf.kubernetes.secret` instead.

ℹ Unsafe fix
82 82 | from airflow.kubernetes.pod_runtime_info_env import PodRuntimeInfoEnv
83 83 | from airflow.kubernetes.secret import (
84 84 |     K8SModel,
85    |-    Secret,
86 85 | )
87 86 | from airflow.kubernetes.volume import Volume
88 87 | from airflow.kubernetes.volume_mount import VolumeMount
   88 |+from airflow.providers.cncf.kubernetes.secret import Secret
89 89 | 
90 90 | PodDefaults()
91 91 | PodLauncher()

AIR302_kubernetes.py:98:1: AIR302 [*] `airflow.kubernetes.volume.Volume` is moved into `cncf-kubernetes` provider in Airflow 3.0;
   |
96 | K8SModel()
97 | Secret()
98 | Volume()
   | ^^^^^^ AIR302
99 | VolumeMount()
   |
   = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `V1Volume` from `kubernetes.client.models` instead.

ℹ Safe fix
86  86  | )
87  87  | from airflow.kubernetes.volume import Volume
88  88  | from airflow.kubernetes.volume_mount import VolumeMount
    89  |+from kubernetes.client.models import V1Volume
89  90  | 
90  91  | PodDefaults()
91  92  | PodLauncher()
--------------------------------------------------------------------------------
95  96  | PodRuntimeInfoEnv()
96  97  | K8SModel()
97  98  | Secret()
98      |-Volume()
    99  |+V1Volume()
99  100 | VolumeMount()
100 101 | 
101 102 | from airflow.kubernetes.kubernetes_helper_functions import (

AIR302_kubernetes.py:99:1: AIR302 [*] `airflow.kubernetes.volume_mount.VolumeMount` is moved into `cncf-kubernetes` provider in Airflow 3.0;
    |
 97 | Secret()
 98 | Volume()
 99 | VolumeMount()
    | ^^^^^^^^^^^ AIR302
100 |
101 | from airflow.kubernetes.kubernetes_helper_functions import (
    |
    = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `V1VolumeMount` from `kubernetes.client.models` instead.

ℹ Safe fix
86  86  | )
87  87  | from airflow.kubernetes.volume import Volume
88  88  | from airflow.kubernetes.volume_mount import VolumeMount
    89  |+from kubernetes.client.models import V1VolumeMount
89  90  | 
90  91  | PodDefaults()
91  92  | PodLauncher()
--------------------------------------------------------------------------------
96  97  | K8SModel()
97  98  | Secret()
98  99  | Volume()
99      |-VolumeMount()
    100 |+V1VolumeMount()
100 101 | 
101 102 | from airflow.kubernetes.kubernetes_helper_functions import (
102 103 |     annotations_to_key,

AIR302_kubernetes.py:107:1: AIR302 [*] `airflow.kubernetes.kubernetes_helper_functions.annotations_to_key` is moved into `cncf-kubernetes` provider in Airflow 3.0;
    |
105 | )
106 |
107 | annotations_to_key()
    | ^^^^^^^^^^^^^^^^^^ AIR302
108 | get_logs_task_metadata()
109 | rand_str()
    |
    = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `annotations_to_key` from `airflow.providers.cncf.kubernetes.kubernetes_helper_functions` instead.

ℹ Unsafe fix
99  99  | VolumeMount()
100 100 | 
101 101 | from airflow.kubernetes.kubernetes_helper_functions import (
102     |-    annotations_to_key,
103 102 |     get_logs_task_metadata,
104 103 |     rand_str,
105 104 | )
    105 |+from airflow.providers.cncf.kubernetes.kubernetes_helper_functions import annotations_to_key
106 106 | 
107 107 | annotations_to_key()
108 108 | get_logs_task_metadata()

AIR302_kubernetes.py:108:1: AIR302 [*] `airflow.kubernetes.kubernetes_helper_functions.get_logs_task_metadata` is moved into `cncf-kubernetes` provider in Airflow 3.0;
    |
107 | annotations_to_key()
108 | get_logs_task_metadata()
    | ^^^^^^^^^^^^^^^^^^^^^^ AIR302
109 | rand_str()
    |
    = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `get_logs_task_metadata` from `airflow.providers.cncf.kubernetes.kubernetes_helper_functions` instead.

ℹ Unsafe fix
100 100 | 
101 101 | from airflow.kubernetes.kubernetes_helper_functions import (
102 102 |     annotations_to_key,
103     |-    get_logs_task_metadata,
104 103 |     rand_str,
105 104 | )
    105 |+from airflow.providers.cncf.kubernetes.kubernetes_helper_functions import get_logs_task_metadata
106 106 | 
107 107 | annotations_to_key()
108 108 | get_logs_task_metadata()

AIR302_kubernetes.py:109:1: AIR302 [*] `airflow.kubernetes.kubernetes_helper_functions.rand_str` is moved into `cncf-kubernetes` provider in Airflow 3.0;
    |
107 | annotations_to_key()
108 | get_logs_task_metadata()
109 | rand_str()
    | ^^^^^^^^ AIR302
110 |
111 | from airflow.kubernetes.pod_generator import PodGeneratorDeprecated
    |
    = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `rand_str` from `airflow.providers.cncf.kubernetes.kubernetes_helper_functions` instead.

ℹ Unsafe fix
101 101 | from airflow.kubernetes.kubernetes_helper_functions import (
102 102 |     annotations_to_key,
103 103 |     get_logs_task_metadata,
104     |-    rand_str,
105 104 | )
    105 |+from airflow.providers.cncf.kubernetes.kubernetes_helper_functions import rand_str
106 106 | 
107 107 | annotations_to_key()
108 108 | get_logs_task_metadata()

AIR302_kubernetes.py:113:1: AIR302 [*] `airflow.kubernetes.pod_generator.PodGeneratorDeprecated` is moved into `cncf-kubernetes` provider in Airflow 3.0;
    |
111 | from airflow.kubernetes.pod_generator import PodGeneratorDeprecated
112 |
113 | PodGeneratorDeprecated()
    | ^^^^^^^^^^^^^^^^^^^^^^ AIR302
    |
    = help: Install `apache-airflow-providers-cncf-kubernetes>=7.4.0` and use `PodGenerator` from `airflow.providers.cncf.kubernetes.pod_generator` instead.

ℹ Unsafe fix
109 109 | rand_str()
110 110 | 
111 111 | from airflow.kubernetes.pod_generator import PodGeneratorDeprecated
    112 |+from airflow.providers.cncf.kubernetes.pod_generator import PodGenerator
112 113 | 
113 114 | PodGeneratorDeprecated()
