Skip to content

Commit

Permalink
feat(acme): add scan_count to redis storage schema
Browse files Browse the repository at this point in the history
* bump lua-resty-acme plugin to 0.12.0
* expose scan_count in redis storage schema to configure
  the number of keys returned in redis scan calls
  • Loading branch information
szesch committed Sep 8, 2023
1 parent d4d547d commit 4d5b1da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kong-3.5.0-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies = {
"lua-resty-openssl == 0.8.25",
"lua-resty-counter == 0.2.1",
"lua-resty-ipmatcher == 0.6.1",
"lua-resty-acme == 0.11.0",
"lua-resty-acme == 0.12.0",
"lua-resty-session == 4.0.5",
"lua-resty-timer-ng == 0.2.5",
"lpeg == 1.0.2",
Expand Down
7 changes: 7 additions & 0 deletions kong/clustering/compat/removed_fields.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,11 @@ return {
"response_headers",
},
},

-- Any dataplane older than 3.5.0
[3005000000] = {
acme = {
"storage_config.redis.scan_count",
},
},
}
1 change: 1 addition & 0 deletions kong/plugins/acme/schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ local REDIS_STORAGE_SCHEMA = {
custom_validator = validate_namespace
}
},
{ scan_count = { type = "number", required = false, default = 10, description = "The number of keys to return in Redis SCAN calls." } },
}

local CONSUL_STORAGE_SCHEMA = {
Expand Down

0 comments on commit 4d5b1da

Please sign in to comment.