File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ diff --git a/kubernetes/client/exceptions.py b/kubernetes/client/exceptions.py
2+ index c7c152b5..1e23d80a 100644
3+ --- a/kubernetes/client/exceptions.py
4+ +++ b/kubernetes/client/exceptions.py
5+ @@ -88,7 +88,7 @@ class ApiException(OpenApiException):
6+ self.status = http_resp.status
7+ self.reason = http_resp.reason
8+ self.body = http_resp.data
9+ - self.headers = http_resp.getheaders()
10+ + self.headers = http_resp.headers
11+ else:
12+ self.status = status
13+ self.reason = reason
Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ git apply "${SCRIPT_ROOT}/rest_client_patch.diff"
7878# once we upgrade to a version of swagger-codegen that includes it (version>= 6.6.0).
7979# See https://github.com/OpenAPITools/openapi-generator/pull/15283
8080git apply " ${SCRIPT_ROOT} /rest_sni_patch.diff"
81+ # OpenAPI client generator prior to 6.4.0 uses deprecated urllib3 APIs.
82+ git apply " ${SCRIPT_ROOT} /rest_urllib_headers.diff"
8183
8284echo " >>> generating docs..."
8385pushd " ${DOC_ROOT} " > /dev/null
You can’t perform that action at this time.
0 commit comments