envoyproxy/envoy

QUESTION: Static Configuration Failing Validation

开放

#21,221 创建于 2022年5月10日

 (6 条评论) (0 个反应) (0 位负责人)C++ (5,373 个派生)batch import
area/docshelp wanted

仓库指标

星标
 (27,997 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

QUESTION: Static Configuration for Admission Control Failing Validation

Description: I’m trying to write a static configuration file to configure an admission control filter in a testing environment. The sr_threshold and max_rejection_probability fields are the source of errors. The configuration is valid if I comment them out (so that default values are used). It seems the problem is a type issue with v3.Percent for those 2 fields. INVALID_ARGUMENT:(sr_threshold.default_value): invalid value "95.0" for type type.googleapis.com/envoy.type.v3.Percent

What am I doing wrong here? I’ve tried numerous combinations of specifying the typed_config or not, etc, copying patterns from other examples, etc

Thank you!

贡献者指南