Skip to content

Commit f450c66

Browse files
fix/to: update percent-limit and rate-limit plugin json name and kind
1 parent 5543fb0 commit f450c66

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

hango-api-plane-server/src/main/java/org/hango/cloud/core/plugin/processor/AggregateExtensionProcessor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ public FragmentHolder process(String plugin, ServiceInfo serviceInfo) {
5656
holder = getProcessor("DynamicDowngradeProcessor").process(plugin, serviceInfo);
5757
coverToExtensionPlugin(holder, "proxy.filters.http.dynamicdowngrade");
5858
break;
59-
case "ianus-rate-limiting":
59+
case "rate-limiting":
6060
holder = getProcessor("RateLimitProcessor").process(plugin, serviceInfo);
6161
coverToExtensionPlugin(holder, "envoy.filters.http.ratelimit");
6262
break;
63-
case "ianus-percent-limit":
63+
case "percent-limit":
6464
holder = getProcessor("FlowLimitProcessor").process(plugin, serviceInfo);
6565
coverToExtensionPlugin(holder, "envoy.filters.http.fault");
6666
break;

hango-api-plane-server/src/main/resources/template/plugin/route/ianus-percent-limit.json renamed to hango-api-plane-server/src/main/resources/template/plugin/route/percent-limit.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"inject": {
3-
"kind": "ianus-percent-limit"
3+
"kind": "percent-limit"
44
},
55
"layouts": [
66
{

hango-api-plane-server/src/main/resources/template/plugin/route/plugin-config.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"item": [
33
{
4-
"name": "ianus-percent-limit",
4+
"name": "percent-limit",
55
"displayName": "百分比限流",
6-
"schema": "plugin/route/ianus-percent-limit.json",
6+
"schema": "plugin/route/percent-limit.json",
77
"description": "百分比限流插件",
88
"processor": "AggregateGatewayPluginProcessor",
99
"author": "system",
@@ -16,9 +16,9 @@
1616
"categoryName": "流量管理"
1717
},
1818
{
19-
"name": "ianus-rate-limiting",
19+
"name": "rate-limiting",
2020
"displayName": "限流",
21-
"schema": "plugin/route/ianus-rate-limiting.json",
21+
"schema": "plugin/route/rate-limiting.json",
2222
"description": "频控插件",
2323
"processor": "AggregateGatewayPluginProcessor",
2424
"author": "system",

0 commit comments

Comments
 (0)