Skip to content

Commit

Permalink
Patching k8s client lib
Browse files Browse the repository at this point in the history
  • Loading branch information
cuza committed Jan 3, 2024
1 parent 951fcc8 commit b506ca8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contrib/python-k8s-client.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/debian/tron/opt/venvs/tron/lib/python3.8/site-packages/kubernetes/client/api_client.py
+++ b/debian/tron/opt/venvs/tron/lib/python3.8/site-packages/kubernetes/client/api_client.py
@@ -629,7 +629,7 @@
'get_real_child_model'):
return data

- kwargs = {}
+ kwargs = {"local_vars_configuration": self.configuration}
if (data is not None and
klass.openapi_types is not None and
isinstance(data, (list, dict))):
2 changes: 2 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ override_dh_virtualenv:
--preinstall setuptools==46.1.3 \
--pip-tool pip-custom-platform \
--extra-pip-arg "-vvv"
@echo patching k8s client lib
patch debian/tron/opt/venvs/tron/lib/python3.8/site-packages/kubernetes/client/api_client.py contrib/python-k8s-client.diff

override_dh_installinit:
dh_installinit --noscripts

0 comments on commit b506ca8

Please sign in to comment.