Skip to content

Commit

Permalink
feat: support customize label key (#128)
Browse files Browse the repository at this point in the history
* feat: add ratelimit spec & remove temporary proto files

* Update version to 1.5.3-SNAPSHOT

* fix: change maxAmount to max_amount

* feat: add lossless rule specification

* feat: lossless支持lables过滤

* feat: restore circuitbreaker fallback & ratelimit add custom response

* fix: add json_name

* fix: customResponse  to custom_response

* feat: add go compile sources

* feat: add extendInfo to FaultDetector

* feat: add json name

* feat: add blockallowlist rules & remove unused imports

* feat: enhance lane route rule to support more reflexible functions

* fix: 枚举类型不能以VALUE结尾

* feat: 支持指定label_key
  • Loading branch information
andrewshan authored Oct 9, 2024
1 parent 4f80368 commit 67b4f95
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions api/v1/traffic_manage/lane.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,6 @@ message LaneGroup {
repeated LaneRule rules = 11;
// 泳道组标签信息
map<string, string> metadata = 12;
// 基线实例的过滤策略,默认为不带有标签KEY的实例属于该泳道
enum BaselineFilterStrategy {
// 带有标签KEY的实例属于该泳道
NOT_MATCH_KEY = 0;
// 匹配上KEY和VALUE的实例才属于该泳道
NOT_MATCH_KEY_VALUES = 1;
}
BaselineFilterStrategy baselineFilterStrategy = 13 [ json_name = "baseline_filter_strategy" ];

// 操作标志位
bool editable = 20 [ json_name = "editable" ];
bool deleteable = 21 [ json_name = "deleteable" ];
Expand Down Expand Up @@ -117,9 +108,6 @@ 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;
// 属于该泳道的实例标签KEY,不填默认为lane
string label_key = 14;
}

0 comments on commit 67b4f95

Please sign in to comment.