shahar1 commented on code in PR #77374:
URL: https://github.com/apache/airflow/pull/77374#discussion_r4641133947


##########
providers/cncf/kubernetes/pyproject.toml:
##########
@@ -79,13 +79,13 @@ dependencies = [
     # 36.0.1 is the minimum: Configuration.socket_options (needed for TCP 
keepalive with urllib3 2.x)
     # first appears in 36.x, and 36.0.0 shipped an in-cluster auth regression
     # (https://github.com/kubernetes-client/python/issues/2582).
-    "kubernetes>=36.0.1,<37.0.0",
+    "kubernetes>=36.0.1,<38.0.0",
     # Urllib 2.6.0 breaks kubernetes client because kubernetes client uses 
deprecated in 2.0.0 and
     # removed in 2.6.0 `getheaders()` call (instead of `headers` property.
     # Tracked in https://github.com/kubernetes-client/python/issues/2477
     "urllib3>=2.1.0,!=2.6.0",
     # the version is limited to the next MAJOR version and should by synced 
with the kubernetes version
-    "kubernetes_asyncio>=32.0.0,<37.0.0",
+    "kubernetes_asyncio>=32.0.0,<38.0.0",

Review Comment:
   **nit** — `kubernetes_asyncio` has no 37.x release on PyPI (latest is 
36.1.0), so this bound changes nothing today and pairs a 37.x sync client with 
a 36.x async one.
   



##########
providers/cncf/kubernetes/pyproject.toml:
##########
@@ -79,13 +79,13 @@ dependencies = [
     # 36.0.1 is the minimum: Configuration.socket_options (needed for TCP 
keepalive with urllib3 2.x)
     # first appears in 36.x, and 36.0.0 shipped an in-cluster auth regression
     # (https://github.com/kubernetes-client/python/issues/2582).
-    "kubernetes>=36.0.1,<37.0.0",
+    "kubernetes>=36.0.1,<38.0.0",

Review Comment:
   **major** — *"Don't upper-bound dependencies by default; add limits only 
with justification."* 
([`providers/AGENTS.md`](https://github.com/apache/airflow/blob/main/providers/AGENTS.md))
   
   The `<37.0.0` limit has a justification today. With `kubernetes==37.0.2` 
against a Kubernetes v1.37.0 cluster, `KubernetesHook.get_job`, 
`get_job_status`, `list_jobs_from_namespace` and `wait_until_job_complete` fail 
before a request is sent, because `hooks/kubernetes.py` passes `pretty=True` 
and 37.x wants a string:
   
   ```
   ValidationError: 1 validation error for BatchV1Api.read_namespaced_job_status
   pretty
     Input should be a valid string [type=string_type, input_value=True, 
input_type=bool]
   ```
   
   The same calls pass on 36.0.3. Details and the other breaks are in the 
review body.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to