Skip to content

chore: Supplement the schema in deployment  #8804

Description

@tao12345666333

Description

Apache APISIX v3 adds a decoupled deployment mode. ref: https://apisix.apache.org/docs/apisix/deployment-modes/#decoupled

The current schema is not perfect.

When the role is control_plane, it should contain the configuration of the admin field, which is consistent with traditional.

control_plane = {
properties = {
etcd = etcd_schema,
role_control_plane = {
properties = {
config_provider = {
enum = {"etcd"}
},
conf_server = {
properties = {
listen = {
type = "string",
default = "0.0.0.0:9280",
},
cert = { type = "string" },
cert_key = { type = "string" },
client_ca_cert = { type = "string" },
},
required = {"cert", "cert_key"}
},
},
required = {"config_provider", "conf_server"}
},
certs = {
properties = {
cert = { type = "string" },
cert_key = { type = "string" },
trusted_ca_cert = { type = "string" },
},
dependencies = {
cert = {
required = {"cert_key"},
},
},
default = {},
},
},
required = {"etcd", "role_control_plane"}

xref: apache/apisix-helm-chart#459

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions