Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple etcd support. #1283

Merged
merged 5 commits into from
Mar 19, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix.
  • Loading branch information
Akayeshmantha committed Mar 18, 2020
commit 94bf00c7a2a1c41665e7b1f12281379b3a4b5046
4 changes: 2 additions & 2 deletions bin/apisix
Original file line number Diff line number Diff line change
Expand Up @@ -709,13 +709,13 @@ local function init_etcd(show_output)

local timeout = etcd_conf.timeout or 3
local uri
local host_count = #(yaml_conf.etcd.host)

--convert old single etcd config to multiple etcd config
if type(yaml_conf.etcd.host) == "string" then
yaml_conf.etcd.host = {yaml_conf.etcd.host}
end

Akayeshmantha marked this conversation as resolved.
Show resolved Hide resolved
local host_count = #(yaml_conf.etcd.host)
Akayeshmantha marked this conversation as resolved.
Show resolved Hide resolved

for index, host in ipairs(yaml_conf.etcd.host) do

local is_success = true
Expand Down