Skip to content

Commit

Permalink
chore(acme): just use our table tools to shallow copy instead of tablex
Browse files Browse the repository at this point in the history
Signed-off-by: Aapo Talvensaari <[email protected]>
  • Loading branch information
bungle committed Aug 22, 2024
1 parent 5f68365 commit 12f4dc1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kong/plugins/acme/schema.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
local typedefs = require "kong.db.schema.typedefs"
local reserved_words = require "kong.plugins.acme.reserved_words"
local redis_schema = require "kong.tools.redis.schema"

local tablex = require "pl.tablex"
local shallow_copy = require("kong.tools.table").shallow_copy

local CERT_TYPES = { "rsa", "ecc" }

Expand Down Expand Up @@ -82,7 +81,7 @@ local LEGACY_SCHEMA_TRANSLATIONS = {
}},
}

local REDIS_STORAGE_SCHEMA = tablex.copy(redis_schema.config_schema.fields)
local REDIS_STORAGE_SCHEMA = shallow_copy(redis_schema.config_schema.fields)
table.insert(REDIS_STORAGE_SCHEMA, { extra_options = {
description = "Custom ACME Redis options",
type = "record",
Expand Down

0 comments on commit 12f4dc1

Please sign in to comment.