Add maxLength/maxItems/maxProperties support to cel.Compile.

Kubernetes-commit: 83e4d192b136ac3a28ea26a9d09dc9fee7c6b665
This commit is contained in:
Kermit Alexander 2022-02-15 08:49:37 +00:00 committed by Kubernetes Publisher
parent de6ba2aa0a
commit c679395394
1 changed files with 3 additions and 0 deletions

View File

@ -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