Update sigs.k8s.io/gateway-api to v1.2.0-rc1
Co-authored-by: Kevin Pollet <pollet.kevin@gmail.com>
This commit is contained in:
parent
312ebb17ab
commit
a6db1cac37
11 changed files with 1280 additions and 2203 deletions
|
@ -396,10 +396,10 @@ func buildGRPCMethodRule(method *gatev1.GRPCMethodMatch) string {
|
|||
func buildGRPCHeaderRules(headers []gatev1.GRPCHeaderMatch) []string {
|
||||
var rules []string
|
||||
for _, header := range headers {
|
||||
switch ptr.Deref(header.Type, gatev1.HeaderMatchExact) {
|
||||
case gatev1.HeaderMatchExact:
|
||||
switch ptr.Deref(header.Type, gatev1.GRPCHeaderMatchExact) {
|
||||
case gatev1.GRPCHeaderMatchExact:
|
||||
rules = append(rules, fmt.Sprintf("Header(`%s`,`%s`)", header.Name, header.Value))
|
||||
case gatev1.HeaderMatchRegularExpression:
|
||||
case gatev1.GRPCHeaderMatchRegularExpression:
|
||||
rules = append(rules, fmt.Sprintf("HeaderRegexp(`%s`,`%s`)", header.Name, header.Value))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue