Skip to content

Commit bd2ca83

Browse files
Update messageExpression behavior re: cost limits.
1 parent 3172343 commit bd2ca83

File tree

1 file changed

+3
-1
lines changed
  • keps/sig-api-machinery/3488-cel-admission-control

1 file changed

+3
-1
lines changed

keps/sig-api-machinery/3488-cel-admission-control/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,9 @@ Policy definitions:
852852
- `messageExpression: "<cel expression>"` (mutually exclusive with `message`)
853853
- As part of [the KEP update to add expression composition](https://github.com/kubernetes/enhancements/pull/3669/files),
854854
expressions defined under `variables` will be accessible from `messageExpression`
855-
- While messageExpression is a CEL expression, it does not factor into the runtime cost limit.
855+
- `messageExpression` is a CEL expression and thus factors into the runtime cost limit.
856+
If the runtime cost limit is exceeded during `messageExpression` execution, then this is logged.
857+
Whether or not the action is admitted after that depends upon failure policy.
856858
- If `message` and `messageExpression` are absent, `expression` and `name`
857859
will be included in the failure message
858860
- If `messageExpression` results in an error: `expression` and `name` will be

0 commit comments

Comments
 (0)