From a2f0e9eaaa48fddeea3823677257d24485609a57 Mon Sep 17 00:00:00 2001 From: sivchari Date: Thu, 6 Aug 2026 14:43:42 +0900 Subject: [PATCH] relax Headers validation Signed-off-by: sivchari --- api/v1alpha1/ratelimit_types.go | 2 +- .../gateway.envoyproxy.io_backendtrafficpolicies.yaml | 4 ++-- .../gateway.envoyproxy.io_backendtrafficpolicies.yaml | 4 ++-- .../current/other_changes/9681-ratelimit-headers-maxitems.md | 1 + test/helm/gateway-crds-helm/all.out.yaml | 4 ++-- test/helm/gateway-crds-helm/e2e.out.yaml | 4 ++-- test/helm/gateway-crds-helm/envoy-gateway-crds.out.yaml | 4 ++-- 7 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 release-notes/current/other_changes/9681-ratelimit-headers-maxitems.md diff --git a/api/v1alpha1/ratelimit_types.go b/api/v1alpha1/ratelimit_types.go index d10af75594..e8618992ef 100644 --- a/api/v1alpha1/ratelimit_types.go +++ b/api/v1alpha1/ratelimit_types.go @@ -229,7 +229,7 @@ type RateLimitSelectCondition struct { // meaning, a request MUST match all the specified headers. // // +optional - // +kubebuilder:validation:MaxItems=64 + // +kubebuilder:validation:MaxItems=128 Headers []HeaderMatch `json:"headers,omitempty"` // Methods is a list of request methods to match. Multiple method values are ORed together, diff --git a/charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml b/charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml index 72e4b69d56..f998ada6c0 100644 --- a/charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml +++ b/charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml @@ -1545,7 +1545,7 @@ spec: required: - name type: object - maxItems: 64 + maxItems: 128 type: array methods: description: |- @@ -1956,7 +1956,7 @@ spec: required: - name type: object - maxItems: 64 + maxItems: 128 type: array methods: description: |- diff --git a/charts/gateway-helm/charts/crds/crds/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml b/charts/gateway-helm/charts/crds/crds/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml index a79ec46e60..857cb62c59 100644 --- a/charts/gateway-helm/charts/crds/crds/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml +++ b/charts/gateway-helm/charts/crds/crds/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml @@ -1544,7 +1544,7 @@ spec: required: - name type: object - maxItems: 64 + maxItems: 128 type: array methods: description: |- @@ -1955,7 +1955,7 @@ spec: required: - name type: object - maxItems: 64 + maxItems: 128 type: array methods: description: |- diff --git a/release-notes/current/other_changes/9681-ratelimit-headers-maxitems.md b/release-notes/current/other_changes/9681-ratelimit-headers-maxitems.md new file mode 100644 index 0000000000..923e7582c1 --- /dev/null +++ b/release-notes/current/other_changes/9681-ratelimit-headers-maxitems.md @@ -0,0 +1 @@ +Increased the maximum number of header matches allowed in `RateLimitSelectCondition.headers` from 64 to 128. diff --git a/test/helm/gateway-crds-helm/all.out.yaml b/test/helm/gateway-crds-helm/all.out.yaml index f0fcbd76a5..a8fa3f0f7b 100644 --- a/test/helm/gateway-crds-helm/all.out.yaml +++ b/test/helm/gateway-crds-helm/all.out.yaml @@ -26162,7 +26162,7 @@ spec: required: - name type: object - maxItems: 64 + maxItems: 128 type: array methods: description: |- @@ -26573,7 +26573,7 @@ spec: required: - name type: object - maxItems: 64 + maxItems: 128 type: array methods: description: |- diff --git a/test/helm/gateway-crds-helm/e2e.out.yaml b/test/helm/gateway-crds-helm/e2e.out.yaml index a91c9b9ca8..67c2d4debe 100644 --- a/test/helm/gateway-crds-helm/e2e.out.yaml +++ b/test/helm/gateway-crds-helm/e2e.out.yaml @@ -2100,7 +2100,7 @@ spec: required: - name type: object - maxItems: 64 + maxItems: 128 type: array methods: description: |- @@ -2511,7 +2511,7 @@ spec: required: - name type: object - maxItems: 64 + maxItems: 128 type: array methods: description: |- diff --git a/test/helm/gateway-crds-helm/envoy-gateway-crds.out.yaml b/test/helm/gateway-crds-helm/envoy-gateway-crds.out.yaml index f926f93ec0..7c69020cd7 100644 --- a/test/helm/gateway-crds-helm/envoy-gateway-crds.out.yaml +++ b/test/helm/gateway-crds-helm/envoy-gateway-crds.out.yaml @@ -2100,7 +2100,7 @@ spec: required: - name type: object - maxItems: 64 + maxItems: 128 type: array methods: description: |- @@ -2511,7 +2511,7 @@ spec: required: - name type: object - maxItems: 64 + maxItems: 128 type: array methods: description: |-