apache-airflow-providers-cncf-kubernetes 8.3.0__py3-none-any.whl → 8.3.0rc1__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/operators/pod.py +7 -16
- airflow/providers/cncf/kubernetes/utils/pod_manager.py +1 -1
- {apache_airflow_providers_cncf_kubernetes-8.3.0.dist-info → apache_airflow_providers_cncf_kubernetes-8.3.0rc1.dist-info}/METADATA +3 -3
- {apache_airflow_providers_cncf_kubernetes-8.3.0.dist-info → apache_airflow_providers_cncf_kubernetes-8.3.0rc1.dist-info}/RECORD +6 -6
- {apache_airflow_providers_cncf_kubernetes-8.3.0.dist-info → apache_airflow_providers_cncf_kubernetes-8.3.0rc1.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_cncf_kubernetes-8.3.0.dist-info → apache_airflow_providers_cncf_kubernetes-8.3.0rc1.dist-info}/entry_points.txt +0 -0
|
@@ -36,7 +36,6 @@ import kubernetes
|
|
|
36
36
|
import tenacity
|
|
37
37
|
from deprecated import deprecated
|
|
38
38
|
from kubernetes.client import CoreV1Api, V1Pod, models as k8s
|
|
39
|
-
from kubernetes.client.exceptions import ApiException
|
|
40
39
|
from kubernetes.stream import stream
|
|
41
40
|
from urllib3.exceptions import HTTPError
|
|
42
41
|
|
|
@@ -789,18 +788,9 @@ class KubernetesPodOperator(BaseOperator):
|
|
|
789
788
|
# Skip await_pod_completion when the event is 'timeout' due to the pod can hang
|
|
790
789
|
# on the ErrImagePull or ContainerCreating step and it will never complete
|
|
791
790
|
if event["status"] != "timeout":
|
|
792
|
-
|
|
793
|
-
self.pod
|
|
794
|
-
|
|
795
|
-
)
|
|
796
|
-
except ApiException as e:
|
|
797
|
-
if e.status == 404:
|
|
798
|
-
self.pod = None
|
|
799
|
-
self.log.warning(
|
|
800
|
-
"Pod not found while waiting for completion. The last status was %r", event["status"]
|
|
801
|
-
)
|
|
802
|
-
else:
|
|
803
|
-
raise e
|
|
791
|
+
self.pod = self.pod_manager.await_pod_completion(
|
|
792
|
+
self.pod, istio_enabled, self.base_container_name
|
|
793
|
+
)
|
|
804
794
|
if self.pod is not None:
|
|
805
795
|
self.post_complete_action(
|
|
806
796
|
pod=self.pod,
|
|
@@ -817,7 +807,8 @@ class KubernetesPodOperator(BaseOperator):
|
|
|
817
807
|
logs = self.client.read_namespaced_pod_log(
|
|
818
808
|
name=pod.metadata.name,
|
|
819
809
|
namespace=pod.metadata.namespace,
|
|
820
|
-
|
|
810
|
+
pod=pod,
|
|
811
|
+
container_name=self.base_container_name,
|
|
821
812
|
follow=follow,
|
|
822
813
|
timestamps=False,
|
|
823
814
|
since_seconds=since_seconds,
|
|
@@ -827,11 +818,11 @@ class KubernetesPodOperator(BaseOperator):
|
|
|
827
818
|
line = raw_line.decode("utf-8", errors="backslashreplace").rstrip("\n")
|
|
828
819
|
if line:
|
|
829
820
|
self.log.info("[%s] logs: %s", self.base_container_name, line)
|
|
830
|
-
except
|
|
821
|
+
except HTTPError as e:
|
|
831
822
|
self.log.warning(
|
|
832
823
|
"Reading of logs interrupted with error %r; will retry. "
|
|
833
824
|
"Set log level to DEBUG for traceback.",
|
|
834
|
-
e
|
|
825
|
+
e,
|
|
835
826
|
)
|
|
836
827
|
|
|
837
828
|
def post_complete_action(self, *, pod, remote_pod, **kwargs) -> None:
|
|
@@ -516,7 +516,7 @@ class PodManager(LoggingMixin):
|
|
|
516
516
|
# a timeout is a normal thing and we ignore it and resume following logs
|
|
517
517
|
if not isinstance(exc, TimeoutError):
|
|
518
518
|
self.log.warning(
|
|
519
|
-
"Pod %s log read interrupted but container %s still running
|
|
519
|
+
"Pod %s log read interrupted but container %s still running",
|
|
520
520
|
pod.metadata.name,
|
|
521
521
|
container_name,
|
|
522
522
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: apache-airflow-providers-cncf-kubernetes
|
|
3
|
-
Version: 8.3.
|
|
3
|
+
Version: 8.3.0rc1
|
|
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>
|
|
@@ -22,7 +22,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
23
|
Classifier: Topic :: System :: Monitoring
|
|
24
24
|
Requires-Dist: aiofiles>=23.2.0
|
|
25
|
-
Requires-Dist: apache-airflow>=2.7.
|
|
25
|
+
Requires-Dist: apache-airflow>=2.7.0rc0
|
|
26
26
|
Requires-Dist: asgiref>=3.5.2
|
|
27
27
|
Requires-Dist: cryptography>=2.0.0
|
|
28
28
|
Requires-Dist: google-re2>=1.0
|
|
@@ -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.3.0``
|
|
83
|
+
Release: ``8.3.0.rc1``
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
`Kubernetes <https://kubernetes.io/>`__
|
|
@@ -32,7 +32,7 @@ airflow/providers/cncf/kubernetes/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SB
|
|
|
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=qbhaytWCoi2XdkWZnDFfFPOt1CsNDk7wyrCWtn1nxlk,21432
|
|
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=jXa0llwdJDDg4oKpc-zHCSm3IfraBwmNqD5C9osZLpU,51654
|
|
36
36
|
airflow/providers/cncf/kubernetes/operators/resource.py,sha256=ccbZQKB1B5N4Y-ruItacB5Q105Tc0uNSoEmUAaSCrGQ,7570
|
|
37
37
|
airflow/providers/cncf/kubernetes/operators/spark_kubernetes.py,sha256=xHuxlcGeMg3afAHEW1JSU9oTdJJ_p07EiqUdA4oxJuU,13262
|
|
38
38
|
airflow/providers/cncf/kubernetes/pod_template_file_examples/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
@@ -52,9 +52,9 @@ airflow/providers/cncf/kubernetes/triggers/pod.py,sha256=_zNKBpp-gr7WIFp_TUTAsoo
|
|
|
52
52
|
airflow/providers/cncf/kubernetes/utils/__init__.py,sha256=ClZN0VPjWySdVwS_ktH7rrgL9VLAcs3OSJSB9s3zaYw,863
|
|
53
53
|
airflow/providers/cncf/kubernetes/utils/delete_from.py,sha256=poObZSoEJwQyaYWilEURs8f4CDY2sn_pfwS31Lf579A,5195
|
|
54
54
|
airflow/providers/cncf/kubernetes/utils/k8s_resource_iterator.py,sha256=-Pgc5i2WEDl7ZBvtJZ4eWDqqlSj8WdULqwUyOWmsRp8,1928
|
|
55
|
-
airflow/providers/cncf/kubernetes/utils/pod_manager.py,sha256=
|
|
55
|
+
airflow/providers/cncf/kubernetes/utils/pod_manager.py,sha256=bB5qtz7QOkGQ1ZynuJ_U8jmI0FKYYrp1iFU1Zkn-_-0,33608
|
|
56
56
|
airflow/providers/cncf/kubernetes/utils/xcom_sidecar.py,sha256=k6bdmVJ21OrAwGmWwledRrAmaty9ZrmbuM-IbaI4mqo,2519
|
|
57
|
-
apache_airflow_providers_cncf_kubernetes-8.3.
|
|
58
|
-
apache_airflow_providers_cncf_kubernetes-8.3.
|
|
59
|
-
apache_airflow_providers_cncf_kubernetes-8.3.
|
|
60
|
-
apache_airflow_providers_cncf_kubernetes-8.3.
|
|
57
|
+
apache_airflow_providers_cncf_kubernetes-8.3.0rc1.dist-info/entry_points.txt,sha256=ByD3QJJyP9CfmTYtpNI1953akD38RUDgpGXLaq9vpOw,111
|
|
58
|
+
apache_airflow_providers_cncf_kubernetes-8.3.0rc1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
59
|
+
apache_airflow_providers_cncf_kubernetes-8.3.0rc1.dist-info/METADATA,sha256=pcELUB2g0Ft0eSGgSeDss0kTt7p82YUqMxFeqe3eBFg,5268
|
|
60
|
+
apache_airflow_providers_cncf_kubernetes-8.3.0rc1.dist-info/RECORD,,
|
|
File without changes
|