Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enhance lane route rule to support more reflexible functions #126

Merged
merged 23 commits into from
Sep 14, 2024
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e0e1e1d
feat: add ratelimit spec & remove temporary proto files
andrewshan Aug 12, 2024
ca5eb29
Merge branch 'polarismesh:main' into main
andrewshan Aug 12, 2024
02ae852
Update version to 1.5.3-SNAPSHOT
andrewshan Aug 12, 2024
b4028c8
fix: change maxAmount to max_amount
andrewshan Aug 12, 2024
c54e971
Merge branch 'polarismesh:main' into main
andrewshan Aug 12, 2024
0cc9d29
feat: add lossless rule specification
andrewshan Aug 13, 2024
e4f17d3
Merge branch 'polarismesh:main' into main
andrewshan Aug 13, 2024
cbe4598
feat: lossless支持lables过滤
andrewshan Aug 13, 2024
f3f32fa
Merge branch 'polarismesh:main' into main
andrewshan Aug 15, 2024
9b47ee6
Merge branch 'polarismesh:main' into main
andrewshan Aug 15, 2024
8c58ad5
feat: restore circuitbreaker fallback & ratelimit add custom response
andrewshan Aug 15, 2024
08f17d3
fix: add json_name
andrewshan Aug 15, 2024
c1d1fa9
fix: customResponse to custom_response
andrewshan Aug 15, 2024
2f4733b
Merge branch 'polarismesh:main' into main
andrewshan Aug 15, 2024
6601b20
feat: add go compile sources
andrewshan Aug 15, 2024
ca44f9a
Merge branch 'polarismesh:main' into main
andrewshan Aug 15, 2024
233b6b9
feat: add extendInfo to FaultDetector
andrewshan Aug 19, 2024
51171c7
feat: add json name
andrewshan Aug 19, 2024
1dec977
Merge branch 'polarismesh:main' into main
andrewshan Aug 19, 2024
63677cb
Merge branch 'polarismesh:main' into main
andrewshan Sep 2, 2024
3f3ea13
feat: add blockallowlist rules & remove unused imports
andrewshan Sep 2, 2024
ff2d2bf
Merge branch 'polarismesh:main' into main
andrewshan Sep 2, 2024
948a8a4
feat: enhance lane route rule to support more reflexible functions
andrewshan Sep 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions api/v1/traffic_manage/lane.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ message LaneGroup {
repeated LaneRule rules = 11;
// 泳道组标签信息
map<string, string> metadata = 12;
// 基线实例的过滤策略,默认为不带有标签KEY的实例属于该泳道
enum BaselineFilterStrategy {
// 带有标签KEY的实例属于该泳道
NOT_MATCH_KEY = 0;
// 匹配上KEY和VALUE的实例才属于该泳道
NOT_MATCH_KEY_VALUE = 1;
}
BaselineFilterStrategy baseline_filter_strategy = 13 [ json_name = "baseline_filter_strategy" ];

// 操作标志位
bool editable = 20 [ json_name = "editable" ];
bool deleteable = 21 [ json_name = "deleteable" ];
Expand Down Expand Up @@ -108,4 +117,9 @@ message LaneRule {
uint32 priority = 12;
// description simple description rules
string description = 13;
// 属于该泳道的实例标签值,只要匹配上其中一个标签,就代表这个实例属于这个泳道
// 如果为空,则使用default_label_value
repeated string label_values = 14;
// 属于该泳道的实例标签KEY,默认为lane
string label_key = 15;
}