fix: Support for queryParams in canary match condition #880

Signed-off-by: Son Bui <sonbv00@gmail.com>
This commit is contained in:
Son Bui
2023-09-05 15:12:24 +08:00
parent 2d3f039d80
commit ff25d1ee92
3 changed files with 84 additions and 0 deletions

View File

@@ -936,6 +936,34 @@ spec:
description: RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax)
format: string
type: string
queryParams:
description: Query parameters for matching.
type: object
additionalProperties:
oneOf:
- not:
anyOf:
- required:
- exact
- required:
- prefix
- required:
- regex
- required:
- exact
- required:
- prefix
- required:
- regex
properties:
exact:
type: string
prefix:
type: string
regex:
description: RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax).
type: string
type: object
sourceLabels:
description: Applicable only when the 'mesh' gateway is included in the service.gateways list
type: object