Skip to content

Commit

Permalink
chore(galileo) stop enabling the plugin by default
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Feb 19, 2018
1 parent c1ec51b commit 4faec8d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion kong/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ local plugins = {
"hmac-auth",
"basic-auth",
"ip-restriction",
"galileo",
"request-transformer",
"response-transformer",
"request-size-limiting",
Expand Down
4 changes: 4 additions & 0 deletions kong/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ local function load_plugins(kong_conf, dao)

-- load installed plugins
for plugin in pairs(kong_conf.plugins) do
if plugin == "galileo" then
ngx_log(ngx.WARN, "the 'galileo' plugin has been deprecated")
end

local ok, handler = utils.load_module_if_exists("kong.plugins." .. plugin .. ".handler")
if not ok then
return nil, plugin .. " plugin is enabled but not installed;\n" .. handler
Expand Down
6 changes: 5 additions & 1 deletion spec/01-unit/014-plugins_order_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ describe("Plugins", function()
local plugins

setup(function()
local conf = assert(conf_loader())
local conf = assert(conf_loader(nil, {
-- ensure we test the galileo priority even if galileo isn't enabled by
-- default anymore
custom_plugins = "galileo",
}))

plugins = {}

Expand Down

0 comments on commit 4faec8d

Please sign in to comment.