diff --git a/kubernetes-tests/pyproject.toml b/kubernetes-tests/pyproject.toml index bced4f3384ddc..90ddc85ea62cb 100644 --- a/kubernetes-tests/pyproject.toml +++ b/kubernetes-tests/pyproject.toml @@ -41,6 +41,10 @@ dependencies = [ "apache-airflow-task-sdk", # Requests 3 if it will be released, will be heavily breaking. "requests>=2.32.0,<3", + # 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", ] [tool.pytest]