-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CEL MaxLength integration #108419
CEL MaxLength integration #108419
Conversation
/hold still missing a couple corner cases |
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go
Outdated
Show resolved
Hide resolved
/triage accepted |
7fc2dcb
to
0ff3d2d
Compare
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/apiextensions-apiserver/third_party/forked/celopenapi/model/schemas.go
Outdated
Show resolved
Hide resolved
Is that where we'll handle things like a |
Right - #108612 will handle things like that when it merges. |
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go
Show resolved
Hide resolved
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go
Show resolved
Hide resolved
/retest |
lgtm once squashed and CI is green |
/retest |
staging/src/k8s.io/apiextensions-apiserver/third_party/forked/celopenapi/model/schemas.go
Outdated
Show resolved
Hide resolved
b68262f
to
8db6267
Compare
8db6267
to
83e4d19
Compare
/retest |
2 similar comments
/retest |
/retest |
/retest |
/lgtm unhold at will |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DangerOnTheRanger, liggitt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
/retest |
1 similar comment
/retest |
@DangerOnTheRanger: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR extracts the OpenAPIv3
maxLength
property (or its equivalent for non-string datatypes) when given by the user and estimating it otherwise before reporting the total expression cost fromcel.Compile
; each expression passed throughCompile
now has a static cost returned with it. The final piece of the puzzle (which will be in #108612) will be to then use those costs to determine what to run and what not to run for the sake of apiserver performance. Part of #107573.Which issue(s) this PR fixes:
Special notes for your reviewer:
da68d7bb21fe42f53c7357073dbf66a21328e61b can be ignored/does not need to be reviewed; that commit is purely from running
./hack/pin-dependency.sh github.com/google/cel-go 9ef90eddf66efeea82f81bf35326ca85f99f859e
and then runningupdate-vendor.sh
.Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: