Skip to content

Commit 543b2a6

Browse files
Update kubernetes python client to 35.0.0 from PyPI (ansible#16236)
- Move kubernetes from git-based install to PyPI (v35.0.0 now available) - Remove urllib3 cap comment since kubernetes 35.0.0 no longer restricts it - Update README.md upgrade blocker documentation
1 parent 8c5cf49 commit 543b2a6

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

requirements/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ they are functionally working. Versions need to match the versions used in the p
5757

5858
Verify ansible-runner's build dependency doesn't conflict with the changes made.
5959

60-
### urllib3 and OPA-python-client
61-
There are incompatible version dependancies for urllib3 between OPA-python-client and kubernetes.
62-
OPA-python-client v2.0.3+ requires urllib3 v2.5.0+ and kubernetes v34.1.0 caps it at v.2.4.0.
60+
### OPA-python-client
61+
OPA-python-client v2.0.3+ requires urllib3 v2.5.0+ but has other compatibility issues that need investigation.
6362

6463
## djangorestframework
6564
Upgrading to 3.16.1 introduced errors on the tests around CredentialInputSource. We have several

requirements/requirements.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ maturin # pydantic-core build dep
3535
msgpack
3636
msrestazure
3737
OPA-python-client==2.0.2 # upgrading requires urllib3 2.5.0+ which is blocked by other deps
38+
kubernetes>=35.0.0
3839
openshift
3940
opentelemetry-api~=1.37 # new y streams can be drastically different, in a good way
4041
opentelemetry-sdk~=1.37
@@ -60,7 +61,7 @@ requests
6061
slack-sdk
6162
twilio
6263
twisted[tls]>=24.7.0 # CVE-2024-41810
63-
urllib3>=2.6.3 # CVE-2024-37891. capped by kubernetes 34.1.0 reqs
64+
urllib3>=2.6.3 # CVE-2024-37891
6465
uWSGI>=2.0.28
6566
uwsgitop
6667
wheel>=0.38.1 # CVE-2022-40898

requirements/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ jsonschema==4.25.1
253253
# drf-spectacular
254254
jsonschema-specifications==2025.9.1
255255
# via jsonschema
256-
# kubernetes @ git+https://github.com/kubernetes-client/python.git@df31d90d6c910d6b5c883b98011c93421cac067d # git requirements installed separately
256+
kubernetes==35.0.0
257257
# via
258-
# -r /awx_devel/requirements/requirements_git.txt
258+
# -r /awx_devel/requirements/requirements.in
259259
# openshift
260260
lockfile==0.12.2
261261
# via python-daemon

requirements/requirements_git.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ ansible-runner @ git+https://github.com/ansible/ansible-runner.git@devel
2222
awx-plugins-core[credentials-github-app] @ git+https://github.com/ansible/awx-plugins.git@devel
2323
django-ansible-base[feature-flags,jwt-consumer,rbac,resource-registry,rest-filters] @ git+https://github.com/ansible/django-ansible-base@devel
2424
awx-plugins-interfaces @ git+https://github.com/ansible/awx_plugins.interfaces.git
25-
kubernetes @ git+https://github.com/kubernetes-client/python.git@df31d90d6c910d6b5c883b98011c93421cac067d

0 commit comments

Comments
 (0)