Skip to content

Commit 270f556

Browse files
authored
Merge pull request #2549 from yliaog/master
added hotfixes that were incorrectly removed during upgrading openapi-generator to v6.6.0
2 parents 47f7520 + b900239 commit 270f556

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

scripts/apply-hotfixes.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,24 @@ else
5151
exit 1
5252
fi;
5353

54+
# Patching commits for Client Context Manager
55+
# UPDATE: OpenAPI generator v4.3.0 has the context manager as a functionality. Cherry-picking just the tests for completeness.
56+
# Ref: https://github.com/kubernetes-client/python/pull/1073
57+
git cherry-pick -n 13dffb897617f87aaaee247095107d7011e002d5
58+
if [ $? -eq 0 ]
59+
then
60+
echo Succesfully patched changes for Client Context Manager
61+
else
62+
echo Failed to patch changes for Client Context Manager
63+
git restore --staged .
64+
exit 1
65+
fi;
66+
5467
# Patching commit for no_proxy support
5568
# UPDATE: The commit being cherry-picked is updated kubernetes/client/ unless OpenAPI generator v5.3.1 involved (offinical support of no_proxy feature).
5669
# Ref: https://github.com/kubernetes-client/python/pull/1579/commits/95a893cd1c34de11a4e3893dd1dfde4a0ca30bdc and conversations in the PR.
57-
git cherry-pick -n 95a893cd1c34de11a4e3893dd1dfde4a0ca30bdc
70+
# UPDATE: The commit being cherry-picked is updated after upgrading openapi-generator to v6.6.0.
71+
git cherry-pick -n c5939ff3ae82b4cb711208af682f7395297fe751 d8c380e8bdef99e14c7a0e5a8ee216af370a10d8
5872
if [ $? -eq 0 ]
5973
then
6074
echo Successfully patched changes for no_proxy support

0 commit comments

Comments
 (0)