This is an automated email from the ASF dual-hosted git repository.
monkeydluffy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 6707ea7d7 fix: don't require etcd under deployment (#10528)
6707ea7d7 is described below
commit 6707ea7d7d96be013261f205535dd73fe7c43abb
Author: Navendu Pottekkat <[email protected]>
AuthorDate: Wed Nov 22 16:05:07 2023 +0530
fix: don't require etcd under deployment (#10528)
---
apisix/cli/schema.lua | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/apisix/cli/schema.lua b/apisix/cli/schema.lua
index 401998094..0955262cd 100644
--- a/apisix/cli/schema.lua
+++ b/apisix/cli/schema.lua
@@ -444,8 +444,7 @@ local config_schema = {
oneOf = {
{
properties = {
- role = { const = "traditional" },
- etcd = etcd_schema,
+ role = { enum = { "traditional" } },
admin = admin_schema,
role_traditional = {
type = "object",
@@ -461,8 +460,7 @@ local config_schema = {
},
{
properties = {
- role = { const = "control_plane" },
- etcd = etcd_schema,
+ role = { enum = { "control_plane" } },
admin = admin_schema,
role_control_plane = {
type = "object",
@@ -478,8 +476,7 @@ local config_schema = {
},
{
properties = {
- role = { const = "data_plane" },
- etcd = etcd_schema,
+ role = { enum = { "data_plane" } },
role_data_plane = {
type = "object",
properties = {