Commit 20e3ed60 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'workhorse-gitaly-address' into 'master'

Pass GitalyAddress to workhorse

See merge request !10447
parents a46cca2e ca94d200
......@@ -45,7 +45,12 @@ module Gitlab
raise "Unsupported action: #{action}"
end
params[:GitalySocketPath] = URI(address).path if feature_enabled
if feature_enabled
params[:GitalyAddress] = address
# TODO deprecate GitalySocketPath once GITLAB_WORKHORSE_VERSION points
# to a version that supports GitalyAddress.
params[:GitalySocketPath] = URI(address).path
end
end
params
......
......@@ -188,8 +188,10 @@ describe Gitlab::Workhorse, lib: true do
context 'when Gitaly is enabled' do
let(:gitaly_params) do
address = Gitlab::GitalyClient.get_address('default')
{
GitalySocketPath: URI(Gitlab::GitalyClient.get_address('default')).path,
GitalySocketPath: URI(address).path,
GitalyAddress: address,
}
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment