mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-06 04:54:29 +08:00
Fix K8s runtime failing to connect due to missing CA certificates (#2957)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
This commit is contained in:
parent
71ce29d03f
commit
f52c529f3b
1 changed files with 8 additions and 1 deletions
|
@ -782,7 +782,14 @@ defmodule Livebook.Utils do
|
|||
Req.Request.append_request_steps(req,
|
||||
connect_options: fn request ->
|
||||
uri = URI.parse(request.url)
|
||||
connect_options = mint_connect_options_for_uri(uri)
|
||||
|
||||
# We use a step, because the configuration depends on the URL,
|
||||
# but we allow any specified :connect_options to take precedence.
|
||||
connect_options =
|
||||
uri
|
||||
|> mint_connect_options_for_uri()
|
||||
|> Keyword.merge(Req.Request.get_option(request, :connect_options, []))
|
||||
|
||||
Req.Request.merge_options(request, connect_options: connect_options)
|
||||
end
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue