Skip to content

Commit aa0d709

Browse files
committed
max_size -> data_source_max_size
1 parent 0710b43 commit aa0d709

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/envoy/config/filter/http/transformation/v2/transformation_filter.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ message TransformationTemplate {
236236
// data_source("my_file") }}').
237237
map<string, envoy.config.core.v3.DataSource> data_sources = 17;
238238
// max size of data source. 4096 bytes by default.
239-
uint32 max_size = 18;
239+
uint32 data_source_max_size = 18;
240240

241241
// Use this attribute to transform request/response headers. It consists of a
242242
// map of strings to templates. The string key determines the name of the

source/extensions/filters/http/transformation/inja_transformer.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,8 @@ InjaTransformer::InjaTransformer(const TransformationTemplate &transformation,
739739
extractors_.emplace_back(std::make_pair(it->first, it->second));
740740
}
741741
uint32_t max_size = 4096;
742-
if (transformation.max_size() > 0) {
743-
max_size = transformation.max_size();
742+
if (transformation.data_source_max_size() > 0) {
743+
max_size = transformation.data_source_max_size();
744744
}
745745

746746
const auto &data_sources = transformation.data_sources();

0 commit comments

Comments
 (0)