diff --git a/contrib/python-k8s-client.diff b/contrib/python-k8s-client.diff new file mode 100644 index 000000000..8db6a815a --- /dev/null +++ b/contrib/python-k8s-client.diff @@ -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))): diff --git a/debian/rules b/debian/rules index f8e2e807f..95bdbb231 100755 --- a/debian/rules +++ b/debian/rules @@ -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