-
Notifications
You must be signed in to change notification settings - Fork 80
cel: add a description to the AST #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Kuat Yessenov <kuat@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Left a small suggestion, LMK what you think.
xds/type/matcher/v3/cel.proto
Outdated
@@ -35,4 +35,7 @@ option (xds.annotations.v3.file_status).work_in_progress = true; | |||
message CelMatcher { | |||
// Either parsed or checked representation of the CEL program. | |||
type.v3.CelExpression expr_match = 1 [(validate.rules).message = {required: true}]; | |||
|
|||
// Human-readable description of the CEL AST, e.g. the original expression text. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider clarifying that this could be used for debugging and is of free form (I'm assuming it is), so no need to adhere to some format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made it a bit more clear about what and why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
cncf/xds@e9ce688...523115e - cel: add a description to the AST (cncf/xds#61) - Bump bazel to 4.2.2 (cncf/xds#68) - bazel: fix "missing strict dependencies" build issue (cncf/xds#72) - bazel version updated from `4.2.2` to `6.3.2` - `protoc-gen-validate` dependencies updated to match Envoy's Signed-off-by: Sergii Tkachenko <sergiitk@google.com>
cncf/xds@e9ce688...523115e - cel: add a description to the AST (cncf/xds#61) - Bump bazel to 4.2.2 (cncf/xds#68) - bazel: fix "missing strict dependencies" build issue (cncf/xds#72) - bazel version updated from `4.2.2` to `6.3.2` - `protoc-gen-validate` dependencies updated to match Envoy's Signed-off-by: Sergii Tkachenko <sergiitk@google.com>
cncf/xds@e9ce688...523115e - cel: add a description to the AST (cncf/xds#61) - Bump bazel to 4.2.2 (cncf/xds#68) - bazel: fix "missing strict dependencies" build issue (cncf/xds#72) - bazel version updated from `4.2.2` to `6.3.2` - `protoc-gen-validate` dependencies updated to match Envoy's Signed-off-by: Sergii Tkachenko <sergiitk@google.com> Mirrored from https://github.com/envoyproxy/envoy @ b500165160ce60020ad55bf6b10c6d5cc0b5f54c
This is useful to assist debugging since AST is not easy to de-construct.