Skip to content- Sources: primary
- Summary: Kyverno's ValidatingPolicy engine converted the AdmissionRequest to unstructured form inside the loop over matched policies, so a Pod matching 16 Pod Security Standards policies was parsed 16 times. Kyverno 1.19.2 builds the request once per admission and keeps each engine's existing request.object contract, cutting a 50 KB Pod benchmark from 4.91 ms to 0.16 ms at 16 policies and 20.01 ms to 0.36 ms at 64. It also fixes a 12% to 23% legacy ClusterPolicy regression introduced in 1.17.0 with copy-on-write context checkpoints.
- Why it matters: Clusters running many Kyverno CEL policies get lower admission latency and allocation by upgrading to 1.19.2, and the post gives a reproducible harness for comparing against native ValidatingAdmissionPolicy.
- Background: Kubernetes admission webhooks let a policy engine accept, reject or mutate each API request before it is stored. CEL, the Common Expression Language, is also used by the API server's built-in ValidatingAdmissionPolicy, which Kyverno benchmarks against here: native is faster at one policy, and Kyverno 1.19.0 was faster at 16 policies while using about 3.2 cores against the API server's 8.2.