-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature Description
The existing Kubernetes examples in the drop-down are really nice, but CEL is supported in multiple contexts in Kubernetes, which have their own distinct inputs, documentation, and expected return types:
- CRD validation rules
self/oldSelfvariables contain data- boolean return value is expected
- Admission webhook matchConditions and ValidatingAdmissionPolicy expressions
object/oldObjectvariables contain data,request...,params,namespaceObjectvariables contain metadata,authorizervariable allows access to authorization functions- boolean return value is expected
- OIDC claim mapping and user validation rules (new in 1.29, configured via file in kube-apiserver arg, design, in-progress docs)
claimsvariable contains claim data for validation (boolean return value) or extracting (string / string array return value, depending on the context)uservariable contains user info for validation- boolean return value is expected
- Authorization matchConditions (new in 1.29, configured via file in kube-apiserver arg, design, in-progress docs)
requestvariable contains SubjectAccessReview data- boolean return value is expected
The existing examples could be even more useful with some additions:
- examples per category
- links to docs for that category
- access to functions (like authorizer) with mocked return values available to that category
- type checking of the expected return value(s) for that category
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request