File tree 1 file changed +4
-1
lines changed 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,9 @@ def get_client(
108
108
config_dict = config_dict , context = context or None , ** kwargs
109
109
)
110
110
)
111
+
111
112
client_configuration = kwargs .get ("client_configuration" , kubernetes .client .Configuration ())
113
+
112
114
try :
113
115
# Ref: https://github.com/kubernetes-client/python/blob/v26.1.0/kubernetes/base/config/__init__.py
114
116
LOGGER .info ("Trying to get client via new_client_from_config" )
@@ -131,10 +133,11 @@ def get_client(
131
133
)
132
134
client_configuration .proxy = proxy
133
135
136
+ kwargs ["client_configuration" ] = client_configuration
137
+
134
138
return kubernetes .dynamic .DynamicClient (
135
139
client = kubernetes .config .new_client_from_config (
136
140
config_file = config_file ,
137
- client_configuration = client_configuration ,
138
141
context = context or None ,
139
142
** kwargs ,
140
143
)
You can’t perform that action at this time.
0 commit comments