We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1c71c62 + dca582e commit e217078Copy full SHA for e217078
.github/workflows/build.yml
@@ -47,12 +47,12 @@ jobs:
47
submodules: recursive
48
49
- name: Setup Go
50
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
+ uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
51
with:
52
go-version: "1.17"
53
54
- name: Cache deps
55
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
+ uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
56
env:
57
cache-name: cache-deps
58
@@ -97,7 +97,7 @@ jobs:
97
98
- name: Cache images
99
id: cache-images
100
101
102
cache-name: cache-apisix-docker-images
103
.github/workflows/cli.yml
@@ -43,7 +43,7 @@ jobs:
43
44
45
46
.github/workflows/push-dev-image-on-commit.yml
@@ -80,7 +80,7 @@ jobs:
80
81
- name: Login to Docker Hub
82
if: github.ref == 'refs/heads/master'
83
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
+ uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
84
85
username: ${{ secrets.DOCKERHUB_USER }}
86
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -96,7 +96,7 @@ jobs:
96
runs-on: ubuntu-latest
steps:
.github/workflows/redhat-ci.yaml
@@ -36,7 +36,7 @@ jobs:
36
37
38
39
40
41
42
@@ -122,7 +122,7 @@ jobs:
122
123
124
125
126
127
128
.github/workflows/source-install.yml
@@ -53,7 +53,7 @@ jobs:
59
apisix-master-0.rockspec
@@ -36,7 +36,7 @@ dependencies = {
"api7-lua-resty-dns-client = 7.1.0-0",
"lua-resty-template = 2.0-1",
"lua-resty-etcd = 1.10.6-0",
- "api7-lua-resty-http = 0.2.2-0",
+ "api7-lua-resty-http = 0.2.3-0",
"lua-resty-balancer = 0.05-0",
"lua-resty-ngxvar = 0.5.2-0",
"lua-resty-jit-uuid = 0.0.7-2",
@@ -51,7 +51,7 @@ dependencies = {
"lua-protobuf = 0.5.3-1",
"lua-resty-openidc = 1.8.0-1",
"luafilesystem = 1.8.0-1",
- "nginx-lua-prometheus-api7 = 0.20240201-1",
+ "nginx-lua-prometheus-api7 = 0.20250302-1",
"jsonschema = 0.9.9-0",
"lua-resty-ipmatcher = 0.6.1-0",
"lua-resty-kafka = 0.23-0",
@@ -69,7 +69,7 @@ dependencies = {
69
"lua-resty-consul = 0.3-2",
70
"penlight = 1.14.0-3",
71
"ext-plugin-proto = 0.6.1-0",
72
- "casbin = 1.45.0-1",
+ "casbin = 1.46.0-1",
73
"inspect == 3.1.3-0",
74
"lua-resty-rocketmq = 0.4.2-0",
75
"opentelemetry-lua = 0.2-6",
apisix/cli/ops.lua
@@ -767,6 +767,16 @@ Please modify "admin_key" in conf/config.yaml .
767
768
end
769
770
+ -- inject consul discovery shared dict
771
+ if enabled_discoveries["consul"] then
772
+ if not sys_conf["discovery_shared_dicts"] then
773
+ sys_conf["discovery_shared_dicts"] = {}
774
+ end
775
+
776
+ local consul_conf = yaml_conf.discovery["consul"]
777
+ sys_conf["discovery_shared_dicts"]["consul"] = consul_conf.shared_size or "10m"
778
779
780
-- fix up lua path
781
sys_conf["extra_lua_path"] = get_lua_path(yaml_conf.apisix.extra_lua_path)
782
sys_conf["extra_lua_cpath"] = get_lua_path(yaml_conf.apisix.extra_lua_cpath)
apisix/core/table.lua
@@ -30,6 +30,7 @@ local ipairs = ipairs
30
local pairs = pairs
31
local type = type
32
local ngx_re = require("ngx.re")
33
+local isarray = require("table.isarray")
34
35
local _M = {
@@ -174,10 +175,10 @@ local function merge(origin, extend)
174
175
for k,v in pairs(extend) do
176
if type(v) == "table" then
177
if type(origin[k] or false) == "table" then
- if _M.nkeys(origin[k]) ~= #origin[k] then
178
- merge(origin[k] or {}, extend[k] or {})
179
- else
+ if isarray(origin[k]) or isarray(v) then
180
origin[k] = v
+ else
181
+ merge(origin[k] or {}, extend[k] or {})
182
183
else
184
0 commit comments