File tree 2 files changed +15
-0
lines changed
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"
78
78
# once we upgrade to a version of swagger-codegen that includes it (version>= 6.6.0).
79
79
# See https://github.com/OpenAPITools/openapi-generator/pull/15283
80
80
git 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"
81
83
82
84
echo " >>> generating docs..."
83
85
pushd " ${DOC_ROOT} " > /dev/null
You can’t perform that action at this time.
0 commit comments