mirror of https://github.com/grpc/grpc.git
[PSM Interop] Ignore DeprecationWarning: HTTPResponse.getheaders() (#34018)
Disables the warning produced by kubernetes/client/rest.py calling the deprecated `urllib3.response.HTTPResponse.getheaders`, `urllib3.response.HTTPResponse.getheader` methods: ``` venv-test/lib/python3.9/site-packages/kubernetes/client/rest.py:44: DeprecationWarning: HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0. Instead access HTTPResponse.headers directly. return self.urllib3_response.getheaders() ``` This issue introduced by openapi-generator, and solved in `v6.4.0`. To fix the issue properly, kubernetes/python folks need to regenerate the library using newer openapi-generator. The most recent release `v27.2.0` still used openapi-generator [`v4.3.0`](https://github.com/kubernetes-client/python/blob/v27.2.0/kubernetes/.openapi-generator/VERSION). Since they release two times a year, and the 2 major version difference of openapi-generator, the fix may take a while. Created an issue in their repo: https://github.com/kubernetes-client/python/issues/2101.pull/34050/head
parent
bd343fd51d
commit
912cb59be5
1 changed files with 12 additions and 0 deletions
Loading…
Reference in new issue