Skip to content

Commit

Permalink
chore(acme): use table tools to shallow copy instead of tablex (#13551)
Browse files Browse the repository at this point in the history
Signed-off-by: Aapo Talvensaari <[email protected]>
  • Loading branch information
bungle authored Nov 12, 2024
1 parent 63f81b0 commit 7047692
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

1 comment on commit 7047692

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:704769215ec1191d988a88dbee539028cc82a294
Artifacts available https://github.com/Kong/kong/actions/runs/11803517550

Please sign in to comment.