From c679395394aa06813c0f676bae67b857baa1e68b Mon Sep 17 00:00:00 2001 From: Kermit Alexander Date: Tue, 15 Feb 2022 08:49:37 +0000 Subject: [PATCH] Add maxLength/maxItems/maxProperties support to cel.Compile. Kubernetes-commit: 83e4d192b136ac3a28ea26a9d09dc9fee7c6b665 --- pkg/server/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/server/config.go b/pkg/server/config.go index 375c4dc24..c16407606 100644 --- a/pkg/server/config.go +++ b/pkg/server/config.go @@ -359,6 +359,9 @@ func NewConfig(codecs serializer.CodecFactory) *Config { // A request body might be encoded in json, and is converted to // proto when persisted in etcd, so we allow 2x as the largest request // body size to be accepted and decoded in a write request. + // If this constant is changed, maxRequestSizeBytes in apiextensions-apiserver/third_party/forked/celopenapi/model/schemas.go + // should be changed to reflect the new value, if the two haven't + // been wired together already somehow. MaxRequestBodyBytes: int64(3 * 1024 * 1024), // Default to treating watch as a long-running operation