api icon indicating copy to clipboard operation
api copied to clipboard

Validation: add documentation and use CEL pre-processor

Open howardjohn opened this issue 1 year ago • 1 comments

Depends on https://github.com/istio/tools/pull/3050.

This PR adds support for a new cel pre-processor: https://github.com/howardjohn/celpp.

This avoids the need to write incredibly verbose and error prone boilerplate to workaround limitations in the CEL language.


This PR has a few commits:

  • Run with no changes. The pre-processor formats the CEL expression, so this has some trivial changes
  • Incrementally migrate things to the new CEL macros where it makes sense to simplify
  • Add documentation for validation (includes more than just the new stuff)

howardjohn avatar Oct 10 '24 21:10 howardjohn