Problem Statement
Kyverno v2 relies heavily on CEL for validation. CEL expressions can get incredibly complex. Simply displaying the CEL string is not user-friendly in the policy detail views.
Proposed Solution
Build a lightweight parser in TypeScript that converts Kyverno CEL expressions into an Abstract Syntax Tree (AST), and write a recursive function that traverses this AST to generate a readable, plain-English sentence. Integrate this into the Kyverno policy detail views.
Problem Statement
Kyverno v2 relies heavily on CEL for validation. CEL expressions can get incredibly complex. Simply displaying the CEL string is not user-friendly in the policy detail views.
Proposed Solution
Build a lightweight parser in TypeScript that converts Kyverno CEL expressions into an Abstract Syntax Tree (AST), and write a recursive function that traverses this AST to generate a readable, plain-English sentence. Integrate this into the Kyverno policy detail views.