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
convert old single etcd config to multiple etcd config.
  • Loading branch information
Akayeshmantha committed Mar 18, 2020
commit 32100a225fceb3c9c1d6d4f9f9205bdd4f1b4661
5 changes: 5 additions & 0 deletions bin/apisix
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,11 @@ local function init_etcd(show_output)
local uri
local host_count = #(yaml_conf.etcd.host)
Akayeshmantha marked this conversation as resolved.
Show resolved Hide resolved
Akayeshmantha marked this conversation as resolved.
Show resolved Hide resolved

--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
for index, host in ipairs(yaml_conf.etcd.host) do

local is_success = true
Expand Down