Skip to content

Commit

Permalink
feat(db) move ssl_cert schema to new db
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Apr 5, 2018
1 parent 9cfdaca commit 25c7205
Show file tree
Hide file tree
Showing 30 changed files with 1,176 additions and 2,615 deletions.
7 changes: 4 additions & 3 deletions kong-0.13.0-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ build = {
["kong.api.routes.cache"] = "kong/api/routes/cache.lua",
["kong.api.routes.upstreams"] = "kong/api/routes/upstreams.lua",
["kong.api.routes.certificates"] = "kong/api/routes/certificates.lua",
["kong.api.routes.snis"] = "kong/api/routes/snis.lua",

["kong.tools.ip"] = "kong/tools/ip.lua",
["kong.tools.ciphers"] = "kong/tools/ciphers.lua",
Expand Down Expand Up @@ -114,8 +113,6 @@ build = {
["kong.dao.schemas.plugins"] = "kong/dao/schemas/plugins.lua",
["kong.dao.schemas.upstreams"] = "kong/dao/schemas/upstreams.lua",
["kong.dao.schemas.targets"] = "kong/dao/schemas/targets.lua",
["kong.dao.schemas.ssl_certificates"] = "kong/dao/schemas/ssl_certificates.lua",
["kong.dao.schemas.ssl_servers_names"] = "kong/dao/schemas/ssl_servers_names.lua",
["kong.dao.db"] = "kong/dao/db/init.lua",
["kong.dao.db.cassandra"] = "kong/dao/db/cassandra.lua",
["kong.dao.db.postgres"] = "kong/dao/db/postgres.lua",
Expand All @@ -129,9 +126,13 @@ build = {
["kong.db"] = "kong/db/init.lua",
["kong.db.errors"] = "kong/db/errors.lua",
["kong.db.dao"] = "kong/db/dao/init.lua",
["kong.db.dao.certificates"] = "kong/db/dao/certificates.lua",
["kong.db.dao.server_names"] = "kong/db/dao/server_names.lua",
["kong.db.schema"] = "kong/db/schema/init.lua",
["kong.db.schema.entities.routes"] = "kong/db/schema/entities/routes.lua",
["kong.db.schema.entities.services"] = "kong/db/schema/entities/services.lua",
["kong.db.schema.entities.certificates"] = "kong/db/schema/entities/certificates.lua",
["kong.db.schema.entities.server_names"] = "kong/db/schema/entities/server_names.lua",
["kong.db.schema.entity"] = "kong/db/schema/entity.lua",
["kong.db.schema.metaschema"] = "kong/db/schema/metaschema.lua",
["kong.db.schema.typedefs"] = "kong/db/schema/typedefs.lua",
Expand Down
2 changes: 2 additions & 0 deletions kong/api/endpoints.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ local ERRORS_HTTP_CODES = {
[Errors.codes.NOT_FOUND] = 404,
[Errors.codes.INVALID_OFFSET] = 400,
[Errors.codes.DATABASE_ERROR] = 500,
[Errors.codes.CONFLICTING_INPUT] = 409,
[Errors.codes.INVALID_INPUT] = 400,
}


Expand Down
3 changes: 1 addition & 2 deletions kong/api/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ ngx.log(ngx.DEBUG, "Loading Admin API endpoints")


-- Load core routes
for _, v in ipairs({"kong", "apis", "consumers", "plugins", "cache",
"certificates", "snis", "upstreams"}) do
for _, v in ipairs({"kong", "apis", "consumers", "plugins", "cache", "upstreams"}) do
local routes = require("kong.api.routes." .. v)
attach_routes(routes)
end
Expand Down
Loading

0 comments on commit 25c7205

Please sign in to comment.