From ff25d1ee9228b2e38f48ac18113acbbd072580fa Mon Sep 17 00:00:00 2001 From: Son Bui Date: Tue, 5 Sep 2023 15:12:24 +0800 Subject: [PATCH] fix: Support for queryParams in canary match condition #880 Signed-off-by: Son Bui --- artifacts/flagger/crd.yaml | 28 ++++++++++++++++++++++++++++ charts/flagger/crds/crd.yaml | 28 ++++++++++++++++++++++++++++ kustomize/base/flagger/crd.yaml | 28 ++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) diff --git a/artifacts/flagger/crd.yaml b/artifacts/flagger/crd.yaml index 9fdda586a..ad4686100 100644 --- a/artifacts/flagger/crd.yaml +++ b/artifacts/flagger/crd.yaml @@ -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 diff --git a/charts/flagger/crds/crd.yaml b/charts/flagger/crds/crd.yaml index 9fdda586a..ad4686100 100644 --- a/charts/flagger/crds/crd.yaml +++ b/charts/flagger/crds/crd.yaml @@ -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 diff --git a/kustomize/base/flagger/crd.yaml b/kustomize/base/flagger/crd.yaml index 9fdda586a..ad4686100 100644 --- a/kustomize/base/flagger/crd.yaml +++ b/kustomize/base/flagger/crd.yaml @@ -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