feat: support match annotation (#188)

Signed-off-by: charlie <qianglin98@qq.com>
This commit is contained in:
charlie
2023-02-16 16:31:22 +08:00
committed by GitHub
parent 56e805f768
commit e89e330e23
10 changed files with 1029 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ type Ingress struct {
Destination *DestinationConfig
IgnoreCase *IgnoreCaseConfig
Match *MatchConfig
}
func (i *Ingress) NeedRegexMatch() bool {
@@ -135,6 +137,7 @@ func NewAnnotationHandlerManager() AnnotationHandler {
auth{},
destination{},
ignoreCaseMatching{},
match{},
},
gatewayHandlers: []GatewayHandler{
downstreamTLS{},
@@ -150,6 +153,7 @@ func NewAnnotationHandlerManager() AnnotationHandler {
retry{},
fallback{},
ignoreCaseMatching{},
match{},
},
trafficPolicyHandlers: []TrafficPolicyHandler{
upstreamTLS{},