apache-airflow-providers-cncf-kubernetes 8.4.1__py3-none-any.whl → 8.4.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of apache-airflow-providers-cncf-kubernetes might be problematic. Click here for more details.
- airflow/providers/cncf/kubernetes/__init__.py +1 -1
- airflow/providers/cncf/kubernetes/executors/kubernetes_executor.py +3 -1
- airflow/providers/cncf/kubernetes/executors/kubernetes_executor_utils.py +5 -13
- airflow/providers/cncf/kubernetes/get_provider_info.py +2 -1
- airflow/providers/cncf/kubernetes/hooks/kubernetes.py +2 -0
- airflow/providers/cncf/kubernetes/operators/pod.py +1 -0
- airflow/providers/cncf/kubernetes/operators/spark_kubernetes.py +1 -0
- airflow/providers/cncf/kubernetes/sensors/spark_kubernetes.py +1 -4
- {apache_airflow_providers_cncf_kubernetes-8.4.1.dist-info → apache_airflow_providers_cncf_kubernetes-8.4.2.dist-info}/METADATA +6 -6
- {apache_airflow_providers_cncf_kubernetes-8.4.1.dist-info → apache_airflow_providers_cncf_kubernetes-8.4.2.dist-info}/RECORD +12 -12
- {apache_airflow_providers_cncf_kubernetes-8.4.1.dist-info → apache_airflow_providers_cncf_kubernetes-8.4.2.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_cncf_kubernetes-8.4.1.dist-info → apache_airflow_providers_cncf_kubernetes-8.4.2.dist-info}/entry_points.txt +0 -0
|
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
|
|
|
29
29
|
|
|
30
30
|
__all__ = ["__version__"]
|
|
31
31
|
|
|
32
|
-
__version__ = "8.4.
|
|
32
|
+
__version__ = "8.4.2"
|
|
33
33
|
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
|
35
35
|
"2.8.0"
|
|
@@ -140,7 +140,9 @@ class KubernetesExecutor(BaseExecutor):
|
|
|
140
140
|
self.last_handled: dict[TaskInstanceKey, float] = {}
|
|
141
141
|
self.kubernetes_queue: str | None = None
|
|
142
142
|
self.task_publish_retries: Counter[TaskInstanceKey] = Counter()
|
|
143
|
-
self.task_publish_max_retries = conf.getint(
|
|
143
|
+
self.task_publish_max_retries = conf.getint(
|
|
144
|
+
"kubernetes_executor", "task_publish_max_retries", fallback=0
|
|
145
|
+
)
|
|
144
146
|
super().__init__(parallelism=self.kube_config.parallelism)
|
|
145
147
|
|
|
146
148
|
def _list_pods(self, query_kwargs):
|
|
@@ -28,6 +28,11 @@ from kubernetes.client.rest import ApiException
|
|
|
28
28
|
from urllib3.exceptions import ReadTimeoutError
|
|
29
29
|
|
|
30
30
|
from airflow.exceptions import AirflowException
|
|
31
|
+
from airflow.providers.cncf.kubernetes.executors.kubernetes_executor_types import (
|
|
32
|
+
ADOPTED,
|
|
33
|
+
ALL_NAMESPACES,
|
|
34
|
+
POD_EXECUTOR_DONE_KEY,
|
|
35
|
+
)
|
|
31
36
|
from airflow.providers.cncf.kubernetes.kube_client import get_kube_client
|
|
32
37
|
from airflow.providers.cncf.kubernetes.kubernetes_helper_functions import (
|
|
33
38
|
annotations_for_logging_task_metadata,
|
|
@@ -39,19 +44,6 @@ from airflow.utils.log.logging_mixin import LoggingMixin
|
|
|
39
44
|
from airflow.utils.singleton import Singleton
|
|
40
45
|
from airflow.utils.state import TaskInstanceState
|
|
41
46
|
|
|
42
|
-
try:
|
|
43
|
-
from airflow.providers.cncf.kubernetes.executors.kubernetes_executor_types import (
|
|
44
|
-
ADOPTED,
|
|
45
|
-
ALL_NAMESPACES,
|
|
46
|
-
POD_EXECUTOR_DONE_KEY,
|
|
47
|
-
)
|
|
48
|
-
except ImportError:
|
|
49
|
-
# avoid failing import when Airflow pre 2.7 is installed
|
|
50
|
-
from airflow.kubernetes.kubernetes_executor_types import ( # type: ignore[no-redef]
|
|
51
|
-
ALL_NAMESPACES,
|
|
52
|
-
POD_EXECUTOR_DONE_KEY,
|
|
53
|
-
)
|
|
54
|
-
|
|
55
47
|
if TYPE_CHECKING:
|
|
56
48
|
from kubernetes.client import Configuration, models as k8s
|
|
57
49
|
|
|
@@ -28,8 +28,9 @@ def get_provider_info():
|
|
|
28
28
|
"name": "Kubernetes",
|
|
29
29
|
"description": "`Kubernetes <https://kubernetes.io/>`__\n",
|
|
30
30
|
"state": "ready",
|
|
31
|
-
"source-date-epoch":
|
|
31
|
+
"source-date-epoch": 1726860352,
|
|
32
32
|
"versions": [
|
|
33
|
+
"8.4.2",
|
|
33
34
|
"8.4.1",
|
|
34
35
|
"8.4.0",
|
|
35
36
|
"8.3.4",
|
|
@@ -845,6 +845,7 @@ class AsyncKubernetesHook(KubernetesHook):
|
|
|
845
845
|
:param name: Name of Pod to fetch.
|
|
846
846
|
:param namespace: Namespace of the Pod.
|
|
847
847
|
:param container_name: name of the container within the pod to monitor
|
|
848
|
+
:param poll_interval: Interval in seconds between polling the container status
|
|
848
849
|
"""
|
|
849
850
|
while True:
|
|
850
851
|
pod = await self.get_pod(name=name, namespace=namespace)
|
|
@@ -862,6 +863,7 @@ class AsyncKubernetesHook(KubernetesHook):
|
|
|
862
863
|
:param name: Name of Pod to fetch.
|
|
863
864
|
:param namespace: Namespace of the Pod.
|
|
864
865
|
:param container_name: name of the container within the pod to monitor
|
|
866
|
+
:param poll_interval: Interval in seconds between polling the container status
|
|
865
867
|
"""
|
|
866
868
|
while True:
|
|
867
869
|
pod = await self.get_pod(name=name, namespace=namespace)
|
|
@@ -495,6 +495,7 @@ class KubernetesPodOperator(BaseOperator):
|
|
|
495
495
|
if include_try_number:
|
|
496
496
|
labels.update(try_number=ti.try_number)
|
|
497
497
|
# In the case of sub dags this is just useful
|
|
498
|
+
# TODO: Remove this when the minimum version of Airflow is bumped to 3.0
|
|
498
499
|
if getattr(context["dag"], "parent_dag", False):
|
|
499
500
|
labels["parent_dag_id"] = context["dag"].parent_dag.dag_id # type: ignore[attr-defined]
|
|
500
501
|
|
|
@@ -202,6 +202,7 @@ class SparkKubernetesOperator(KubernetesPodOperator):
|
|
|
202
202
|
labels.update(try_number=ti.try_number)
|
|
203
203
|
|
|
204
204
|
# In the case of sub dags this is just useful
|
|
205
|
+
# TODO: Remove this when the minimum version of Airflow is bumped to 3.0
|
|
205
206
|
if getattr(context["dag"], "is_subdag", False):
|
|
206
207
|
labels["parent_dag_id"] = context["dag"].parent_dag.dag_id
|
|
207
208
|
# Ensure that label is valid for Kube,
|
|
@@ -22,7 +22,7 @@ from typing import TYPE_CHECKING, Sequence
|
|
|
22
22
|
|
|
23
23
|
from kubernetes import client
|
|
24
24
|
|
|
25
|
-
from airflow.exceptions import AirflowException
|
|
25
|
+
from airflow.exceptions import AirflowException
|
|
26
26
|
from airflow.providers.cncf.kubernetes.hooks.kubernetes import KubernetesHook
|
|
27
27
|
from airflow.sensors.base import BaseSensorOperator
|
|
28
28
|
|
|
@@ -125,10 +125,7 @@ class SparkKubernetesSensor(BaseSensorOperator):
|
|
|
125
125
|
self._log_driver(application_state, response)
|
|
126
126
|
|
|
127
127
|
if application_state in self.FAILURE_STATES:
|
|
128
|
-
# TODO: remove this if block when min_airflow_version is set to higher than 2.7.1
|
|
129
128
|
message = f"Spark application failed with state: {application_state}"
|
|
130
|
-
if self.soft_fail:
|
|
131
|
-
raise AirflowSkipException(message)
|
|
132
129
|
raise AirflowException(message)
|
|
133
130
|
elif application_state in self.SUCCESS_STATES:
|
|
134
131
|
self.log.info("Spark application ended successfully")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: apache-airflow-providers-cncf-kubernetes
|
|
3
|
-
Version: 8.4.
|
|
3
|
+
Version: 8.4.2
|
|
4
4
|
Summary: Provider package apache-airflow-providers-cncf-kubernetes for Apache Airflow
|
|
5
5
|
Keywords: airflow-provider,cncf.kubernetes,airflow,integration
|
|
6
6
|
Author-email: Apache Software Foundation <dev@airflow.apache.org>
|
|
@@ -29,8 +29,8 @@ Requires-Dist: google-re2>=1.0
|
|
|
29
29
|
Requires-Dist: kubernetes>=29.0.0,<=30.1.0
|
|
30
30
|
Requires-Dist: kubernetes_asyncio>=29.0.0,<=30.1.0
|
|
31
31
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
|
32
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-cncf-kubernetes/8.4.
|
|
33
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-cncf-kubernetes/8.4.
|
|
32
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-cncf-kubernetes/8.4.2/changelog.html
|
|
33
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-cncf-kubernetes/8.4.2
|
|
34
34
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
|
35
35
|
Project-URL: Source Code, https://github.com/apache/airflow
|
|
36
36
|
Project-URL: Twitter, https://twitter.com/ApacheAirflow
|
|
@@ -80,7 +80,7 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
|
|
|
80
80
|
|
|
81
81
|
Package ``apache-airflow-providers-cncf-kubernetes``
|
|
82
82
|
|
|
83
|
-
Release: ``8.4.
|
|
83
|
+
Release: ``8.4.2``
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
`Kubernetes <https://kubernetes.io/>`__
|
|
@@ -93,7 +93,7 @@ This is a provider package for ``cncf.kubernetes`` provider. All classes for thi
|
|
|
93
93
|
are in ``airflow.providers.cncf.kubernetes`` python package.
|
|
94
94
|
|
|
95
95
|
You can find package information and changelog for the provider
|
|
96
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-cncf-kubernetes/8.4.
|
|
96
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-cncf-kubernetes/8.4.2/>`_.
|
|
97
97
|
|
|
98
98
|
Installation
|
|
99
99
|
------------
|
|
@@ -120,4 +120,4 @@ PIP package Version required
|
|
|
120
120
|
====================== =====================
|
|
121
121
|
|
|
122
122
|
The changelog for the provider package can be found in the
|
|
123
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-cncf-kubernetes/8.4.
|
|
123
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-cncf-kubernetes/8.4.2/changelog.html>`_.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
airflow/providers/cncf/kubernetes/LICENSE,sha256=FFb4jd2AXnOOf7XLP04pQW6jbdhG49TxlGY6fFpCV1Y,13609
|
|
2
|
-
airflow/providers/cncf/kubernetes/__init__.py,sha256=
|
|
2
|
+
airflow/providers/cncf/kubernetes/__init__.py,sha256=YtPHHX6Fx5G2nBChoi1Dts8iSaoms0_S1LAKTM-D-kI,1502
|
|
3
3
|
airflow/providers/cncf/kubernetes/callbacks.py,sha256=SK_gKvGWuU-nxHfsqsYMlNQ8HZbHfpvyItOqieel2lc,4162
|
|
4
|
-
airflow/providers/cncf/kubernetes/get_provider_info.py,sha256=
|
|
4
|
+
airflow/providers/cncf/kubernetes/get_provider_info.py,sha256=p5WTh0bGhoc-tJDaFFeIi0OZHWgRy2KwHrKrg76Eix8,17944
|
|
5
5
|
airflow/providers/cncf/kubernetes/k8s_model.py,sha256=xmdFhX29DjegoZ-cq8-KDL9soVYXf4OpU6fAGr3cPTU,2101
|
|
6
6
|
airflow/providers/cncf/kubernetes/kube_client.py,sha256=yflZxLousXA9d7t67KrEy55qzb1cUhEyy6yCPkEem28,5329
|
|
7
7
|
airflow/providers/cncf/kubernetes/kube_config.py,sha256=FAmhZZ_Z2JtoVzL6wENSjcwrlwAenHttTX_Ild9aEms,5225
|
|
@@ -20,21 +20,21 @@ airflow/providers/cncf/kubernetes/cli/kubernetes_command.py,sha256=W49hsWZ3XWUJg
|
|
|
20
20
|
airflow/providers/cncf/kubernetes/decorators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
|
21
21
|
airflow/providers/cncf/kubernetes/decorators/kubernetes.py,sha256=qfU_MDOhBsHc2leu1RW3YE5steDFOnWxcVswhjC6GXU,5785
|
|
22
22
|
airflow/providers/cncf/kubernetes/executors/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
|
23
|
-
airflow/providers/cncf/kubernetes/executors/kubernetes_executor.py,sha256=
|
|
23
|
+
airflow/providers/cncf/kubernetes/executors/kubernetes_executor.py,sha256=diRmXRHcP5Koq9G0YBKx7r7obnPUOjt-C_-aGzfrdP4,33872
|
|
24
24
|
airflow/providers/cncf/kubernetes/executors/kubernetes_executor_types.py,sha256=9rRhfRuujGtSE73Ax0kC12whZCgWF2m6j5w9G9e0F_I,1673
|
|
25
|
-
airflow/providers/cncf/kubernetes/executors/kubernetes_executor_utils.py,sha256=
|
|
25
|
+
airflow/providers/cncf/kubernetes/executors/kubernetes_executor_utils.py,sha256=aGGtM7QE2cjdq3dRXh7k7c45ipnVfkjFy4SP35clJpc,23963
|
|
26
26
|
airflow/providers/cncf/kubernetes/executors/local_kubernetes_executor.py,sha256=jfD8DSSN-7kV642vEexQNdGXC3oez79G2ozst--15fc,10193
|
|
27
27
|
airflow/providers/cncf/kubernetes/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
28
|
-
airflow/providers/cncf/kubernetes/hooks/kubernetes.py,sha256=
|
|
28
|
+
airflow/providers/cncf/kubernetes/hooks/kubernetes.py,sha256=KNiADnV3xlkE0P5haOYu-Vdq4CdEWpJGuqZrVQMNDAA,33527
|
|
29
29
|
airflow/providers/cncf/kubernetes/kubernetes_executor_templates/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
30
30
|
airflow/providers/cncf/kubernetes/kubernetes_executor_templates/basic_template.yaml,sha256=yzJmXN4ZyB4aDwI_GIugpL9-f1YMVy__X-LQSbeU95A,2567
|
|
31
31
|
airflow/providers/cncf/kubernetes/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
|
32
32
|
airflow/providers/cncf/kubernetes/operators/custom_object_launcher.py,sha256=ZEXw_PqGItO47AEgGKqAqwFHFo-gb9-7jgEMRJgOfNU,15311
|
|
33
33
|
airflow/providers/cncf/kubernetes/operators/job.py,sha256=RyPuT0yP7-tRrrS7uqDUBGI_xA9_YEg-JLUDJ5QcTA8,23809
|
|
34
34
|
airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py,sha256=EFwHEdEqq4I18BeV9hgp_GFxrLI78ihZAccbyGLSjtY,1269
|
|
35
|
-
airflow/providers/cncf/kubernetes/operators/pod.py,sha256=
|
|
35
|
+
airflow/providers/cncf/kubernetes/operators/pod.py,sha256=nJYBcTrYrdLaqAm5YllXo7ZQRGpsT8gy16fs4PtdLV0,54586
|
|
36
36
|
airflow/providers/cncf/kubernetes/operators/resource.py,sha256=ccbZQKB1B5N4Y-ruItacB5Q105Tc0uNSoEmUAaSCrGQ,7570
|
|
37
|
-
airflow/providers/cncf/kubernetes/operators/spark_kubernetes.py,sha256=
|
|
37
|
+
airflow/providers/cncf/kubernetes/operators/spark_kubernetes.py,sha256=scWhzD5X5p4gvDmxrKYmC4P5XhdCFB2sDDNnF77_fyA,13544
|
|
38
38
|
airflow/providers/cncf/kubernetes/pod_template_file_examples/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
39
39
|
airflow/providers/cncf/kubernetes/pod_template_file_examples/dags_in_image_template.yaml,sha256=7JdppZ-XDBpv2Bnde2SthhcME8w3b8xQdPAK1fJGW60,2256
|
|
40
40
|
airflow/providers/cncf/kubernetes/pod_template_file_examples/dags_in_volume_template.yaml,sha256=-Pk_EwKpyWRYZKOnumUxVrDeAfFJ0nr3WZ7JNnvppzg,2442
|
|
@@ -44,7 +44,7 @@ airflow/providers/cncf/kubernetes/resource_convert/configmap.py,sha256=gf7DdVeD0
|
|
|
44
44
|
airflow/providers/cncf/kubernetes/resource_convert/env_variable.py,sha256=CsVgLPXjI5pSDCBwcN3WCyyWPbiNRZc_OJCPK_C_298,1464
|
|
45
45
|
airflow/providers/cncf/kubernetes/resource_convert/secret.py,sha256=ElZCMbTWeTKoPeIJ1fTvlqRXM8nGkWj2MrIlVckX6Ag,1494
|
|
46
46
|
airflow/providers/cncf/kubernetes/sensors/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
47
|
-
airflow/providers/cncf/kubernetes/sensors/spark_kubernetes.py,sha256=
|
|
47
|
+
airflow/providers/cncf/kubernetes/sensors/spark_kubernetes.py,sha256=ogD8m8baqPN_hGEXjN1NGp1dvslG8ZPBjy_LPr6Zo7I,5353
|
|
48
48
|
airflow/providers/cncf/kubernetes/triggers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
49
49
|
airflow/providers/cncf/kubernetes/triggers/job.py,sha256=fe0kaQos_m_1rVE-1YJBZKKFVLxrlHOB8oI5ntVzSN8,6727
|
|
50
50
|
airflow/providers/cncf/kubernetes/triggers/kubernetes_pod.py,sha256=Cfq-gmdXsW2QGFiX-EYAGsCpN_MDvofbfr3bK7QfQho,1266
|
|
@@ -54,7 +54,7 @@ airflow/providers/cncf/kubernetes/utils/delete_from.py,sha256=poObZSoEJwQyaYWilE
|
|
|
54
54
|
airflow/providers/cncf/kubernetes/utils/k8s_resource_iterator.py,sha256=-Pgc5i2WEDl7ZBvtJZ4eWDqqlSj8WdULqwUyOWmsRp8,1928
|
|
55
55
|
airflow/providers/cncf/kubernetes/utils/pod_manager.py,sha256=g4JZpRJONuWFLdSlc7VyBtDGoST7H4W9LAt2nqNtDpg,33669
|
|
56
56
|
airflow/providers/cncf/kubernetes/utils/xcom_sidecar.py,sha256=k6bdmVJ21OrAwGmWwledRrAmaty9ZrmbuM-IbaI4mqo,2519
|
|
57
|
-
apache_airflow_providers_cncf_kubernetes-8.4.
|
|
58
|
-
apache_airflow_providers_cncf_kubernetes-8.4.
|
|
59
|
-
apache_airflow_providers_cncf_kubernetes-8.4.
|
|
60
|
-
apache_airflow_providers_cncf_kubernetes-8.4.
|
|
57
|
+
apache_airflow_providers_cncf_kubernetes-8.4.2.dist-info/entry_points.txt,sha256=ByD3QJJyP9CfmTYtpNI1953akD38RUDgpGXLaq9vpOw,111
|
|
58
|
+
apache_airflow_providers_cncf_kubernetes-8.4.2.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
59
|
+
apache_airflow_providers_cncf_kubernetes-8.4.2.dist-info/METADATA,sha256=dx6MjBXkaI3nXqDArgQQySRppSa5vkocDXM2pgBhbJ0,5260
|
|
60
|
+
apache_airflow_providers_cncf_kubernetes-8.4.2.dist-info/RECORD,,
|
|
File without changes
|