这是indexloc提供的服务,不要输入任何密码
Skip to content

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

Merged
merged 2 commits into from
Oct 11, 2023
Merged

Conversation

kyessenov
Copy link
Contributor

This is useful to assist debugging since AST is not easy to de-construct.

Signed-off-by: Kuat Yessenov <kuat@google.com>
Copy link

@adisuissa adisuissa left a 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.

@@ -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.

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.

Copy link
Contributor Author

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.

Signed-off-by: Kuat Yessenov <kuat@google.com>
Copy link

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@adisuissa adisuissa merged commit 776c4db into cncf:main Oct 11, 2023
sergiitk added a commit to sergiitk/envoy that referenced this pull request Nov 10, 2023
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>
mattklein123 pushed a commit to envoyproxy/envoy that referenced this pull request Nov 13, 2023
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>
update-envoy bot added a commit to envoyproxy/data-plane-api that referenced this pull request Nov 13, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants