mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 04:37:31 +08:00
Compatible with nginx.ingress.kubernetes.io/canary-by-header-pattern annotation (#693)
This commit is contained in:
@@ -154,7 +154,7 @@ func ApplyByHeader(canary, route *networking.HTTPRoute, canaryIngress *Ingress)
|
||||
match.Headers = map[string]*networking.StringMatch{
|
||||
canaryConfig.Header: {
|
||||
MatchType: &networking.StringMatch_Regex{
|
||||
Regex: canaryConfig.HeaderPattern,
|
||||
Regex: ".*" + canaryConfig.HeaderPattern + ".*",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user