-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Open
Labels
area/celenhancementFeature requests. Not bugs or questions.Feature requests. Not bugs or questions.questionQuestions that are neither investigations, bugs, nor enhancementsQuestions that are neither investigations, bugs, nor enhancements
Description
This field is not handled by Envoy here:
envoy/source/extensions/filters/common/expr/evaluator.cc
Lines 224 to 243 in 9192140
| absl::StatusOr<CompiledExpression> | |
| CompiledExpression::Create(const BuilderInstanceSharedConstPtr& builder, | |
| const xds::type::v3::CelExpression& xds_expr) { | |
| // First try to get expression from the new CEL canonical format. | |
| if (xds_expr.has_cel_expr_checked()) { | |
| return Create(builder, xds_expr.cel_expr_checked().expr()); | |
| } else if (xds_expr.has_cel_expr_parsed()) { | |
| return Create(builder, xds_expr.cel_expr_parsed().expr()); | |
| } | |
| // Fallback to handling legacy formats for backward compatibility. | |
| switch (xds_expr.expr_specifier_case()) { | |
| case xds::type::v3::CelExpression::ExprSpecifierCase::kParsedExpr: | |
| return Create(builder, xds_expr.parsed_expr().expr()); | |
| case xds::type::v3::CelExpression::ExprSpecifierCase::kCheckedExpr: | |
| return Create(builder, xds_expr.checked_expr().expr()); | |
| default: | |
| return absl::InvalidArgumentError("CEL expression not set."); | |
| } | |
| PANIC_DUE_TO_CORRUPT_ENUM; | |
| } |
Metadata
Metadata
Assignees
Labels
area/celenhancementFeature requests. Not bugs or questions.Feature requests. Not bugs or questions.questionQuestions that are neither investigations, bugs, nor enhancementsQuestions that are neither investigations, bugs, nor enhancements