api
api copied to clipboard
Validation: add documentation and use CEL pre-processor
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)