From 545d686d8cc26d21c75ef5272fe1fde5b6bcafd4 Mon Sep 17 00:00:00 2001 From: zhaonan Date: Mon, 4 Sep 2023 19:15:03 +0800 Subject: [PATCH] fix code Signed-off-by: zhaonan --- internal/xds/bootstrap/bootstrap.yaml.tpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/xds/bootstrap/bootstrap.yaml.tpl b/internal/xds/bootstrap/bootstrap.yaml.tpl index f478c767a1c..b37e51d5e92 100644 --- a/internal/xds/bootstrap/bootstrap.yaml.tpl +++ b/internal/xds/bootstrap/bootstrap.yaml.tpl @@ -13,16 +13,16 @@ stats_config: stats_matcher: inclusion_list: patterns: - {{- range $a, $s := .StatsMatcher.Prefixs }} - - prefix: {{$s}} + {{- range $_, $item := .StatsMatcher.Prefixs }} + - prefix: {{$item}} {{- end}} - {{- range $a, $s := .StatsMatcher.Suffixs }} - - suffix: {{$s}} + {{- range $_, $item := .StatsMatcher.Suffixs }} + - suffix: {{$item}} {{- end}} - {{- range $a, $s := .StatsMatcher.RegularExpressions }} + {{- range $_, $item := .StatsMatcher.RegularExpressions }} - safe_regex: google_re2: {} - regex: {{js $s}} + regex: {{js $item}} {{- end}} {{- end }} dynamic_resources: