Skip to content

Commit e217078

Browse files
authored
Merge branch 'apache:master' into master
2 parents 1c71c62 + dca582e commit e217078

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1641
-138
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ jobs:
4747
submodules: recursive
4848

4949
- name: Setup Go
50-
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
50+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
5151
with:
5252
go-version: "1.17"
5353

5454
- name: Cache deps
55-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
55+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
5656
env:
5757
cache-name: cache-deps
5858
with:
@@ -97,7 +97,7 @@ jobs:
9797
9898
- name: Cache images
9999
id: cache-images
100-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
100+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
101101
env:
102102
cache-name: cache-apisix-docker-images
103103
with:

.github/workflows/cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
submodules: recursive
4444

4545
- name: Cache deps
46-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
46+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
4747
env:
4848
cache-name: cache-deps
4949
with:

.github/workflows/push-dev-image-on-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
8181
- name: Login to Docker Hub
8282
if: github.ref == 'refs/heads/master'
83-
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
83+
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
8484
with:
8585
username: ${{ secrets.DOCKERHUB_USER }}
8686
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -96,7 +96,7 @@ jobs:
9696
runs-on: ubuntu-latest
9797
steps:
9898
- name: Login to Docker Hub
99-
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
99+
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
100100
with:
101101
username: ${{ secrets.DOCKERHUB_USER }}
102102
password: ${{ secrets.DOCKERHUB_TOKEN }}

.github/workflows/redhat-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
submodules: recursive
3737

3838
- name: Cache deps
39-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
39+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
4040
env:
4141
cache-name: cache-deps
4242
with:
@@ -122,7 +122,7 @@ jobs:
122122
123123
- name: Cache images
124124
id: cache-images
125-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
125+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
126126
env:
127127
cache-name: cache-apisix-docker-images
128128
with:

.github/workflows/source-install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
submodules: recursive
5454

5555
- name: Cache deps
56-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
56+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
5757
env:
5858
cache-name: cache-deps
5959
with:

apisix-master-0.rockspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies = {
3636
"api7-lua-resty-dns-client = 7.1.0-0",
3737
"lua-resty-template = 2.0-1",
3838
"lua-resty-etcd = 1.10.6-0",
39-
"api7-lua-resty-http = 0.2.2-0",
39+
"api7-lua-resty-http = 0.2.3-0",
4040
"lua-resty-balancer = 0.05-0",
4141
"lua-resty-ngxvar = 0.5.2-0",
4242
"lua-resty-jit-uuid = 0.0.7-2",
@@ -51,7 +51,7 @@ dependencies = {
5151
"lua-protobuf = 0.5.3-1",
5252
"lua-resty-openidc = 1.8.0-1",
5353
"luafilesystem = 1.8.0-1",
54-
"nginx-lua-prometheus-api7 = 0.20240201-1",
54+
"nginx-lua-prometheus-api7 = 0.20250302-1",
5555
"jsonschema = 0.9.9-0",
5656
"lua-resty-ipmatcher = 0.6.1-0",
5757
"lua-resty-kafka = 0.23-0",
@@ -69,7 +69,7 @@ dependencies = {
6969
"lua-resty-consul = 0.3-2",
7070
"penlight = 1.14.0-3",
7171
"ext-plugin-proto = 0.6.1-0",
72-
"casbin = 1.45.0-1",
72+
"casbin = 1.46.0-1",
7373
"inspect == 3.1.3-0",
7474
"lua-resty-rocketmq = 0.4.2-0",
7575
"opentelemetry-lua = 0.2-6",

apisix/cli/ops.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,16 @@ Please modify "admin_key" in conf/config.yaml .
767767

768768
end
769769

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+
end
779+
770780
-- fix up lua path
771781
sys_conf["extra_lua_path"] = get_lua_path(yaml_conf.apisix.extra_lua_path)
772782
sys_conf["extra_lua_cpath"] = get_lua_path(yaml_conf.apisix.extra_lua_cpath)

apisix/core/table.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ local ipairs = ipairs
3030
local pairs = pairs
3131
local type = type
3232
local ngx_re = require("ngx.re")
33+
local isarray = require("table.isarray")
3334

3435

3536
local _M = {
@@ -174,10 +175,10 @@ local function merge(origin, extend)
174175
for k,v in pairs(extend) do
175176
if type(v) == "table" then
176177
if type(origin[k] or false) == "table" then
177-
if _M.nkeys(origin[k]) ~= #origin[k] then
178-
merge(origin[k] or {}, extend[k] or {})
179-
else
178+
if isarray(origin[k]) or isarray(v) then
180179
origin[k] = v
180+
else
181+
merge(origin[k] or {}, extend[k] or {})
181182
end
182183
else
183184
origin[k] = v

0 commit comments

Comments
 (0)