You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recent version of OpenAPI.jl added ability to switch the HTTP library between Downloads.jl and HTTP.jl. With Kuber.jl we prefer HTTP.jl as it might help avoid certain concurrency issues observed earlier.
Set the Kubernetes API server endpoint for a context.
218
254
@@ -224,6 +260,7 @@ Args:
224
260
Keyword Args:
225
261
- max_tries: retries allowed while probing API versions from server
226
262
- verbose: Log API versions
263
+
- httplib: HTTP library to use (:http or :downloads). If not specified, uses the context's stored httplib setting.
227
264
- kwargs: other keyword args to pass on while constructing the client for API server (see OpenAPI.jl - https://github.com/JuliaComputing/OpenAPI.jl#readme)
228
265
"""
229
266
functionset_server(
@@ -233,11 +270,22 @@ function set_server(
233
270
max_tries=retries(ctx, false),
234
271
verbose::Bool=false,
235
272
debug::Bool=false,
273
+
httplib::Union{Nothing,Symbol}=nothing,
236
274
kwargs...
237
275
)
276
+
# Use provided httplib, or fall back to context's stored value
0 commit comments