From fb14f0e5537f0b02a58ddbff33bc723f45a4a1f7 Mon Sep 17 00:00:00 2001 From: Kermit Alexander II Date: Tue, 7 Mar 2023 23:24:23 +0000 Subject: [PATCH] Implement MessageExpression. Kubernetes-commit: 4e26f680a9e10f0da94830bbaba9633807e22aba --- pkg/apis/cel/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/apis/cel/config.go b/pkg/apis/cel/config.go index 4e66868c1..d05821899 100644 --- a/pkg/apis/cel/config.go +++ b/pkg/apis/cel/config.go @@ -33,4 +33,8 @@ const ( // TODO(DangerOnTheRanger): wire in MaxRequestBodyBytes from apiserver/pkg/server/options/server_run_options.go to make this configurable // Note that even if server_run_options.go becomes configurable in the future, this cost constant should be fixed and it should be the max allowed request size for the server MaxRequestSizeBytes = int64(3 * 1024 * 1024) + + // MaxEvaluatedMessageExpressionSizeBytes represents the largest-allowable string generated + // by a messageExpression field + MaxEvaluatedMessageExpressionSizeBytes = 5 * 1024 )