Skip to content

Commit adfcaf1

Browse files
committed
fix: unit tests
Signed-off-by: Steven Kreitzer <[email protected]>
1 parent 7b027b9 commit adfcaf1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

internal/xds/bootstrap/bootstrap.yaml.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ static_resources:
128128
name: text_optimized
129129
typed_config:
130130
"@type": type.googleapis.com/envoy.extensions.compression.gzip.compressor.v3.Gzip
131-
{{- end }}
132131
{{- if .PrometheusCompressionRemoveAcceptEncodingHeader }}
133132
response_direction_config:
134133
remove_accept_encoding_header: true
135134
{{- end }}
135+
{{- end }}
136136
{{- if eq .PrometheusCompressionLibrary "Brotli"}}
137137
{{- if .PrometheusCompressionChooseFirst }}
138138
choose_first: true
@@ -141,11 +141,11 @@ static_resources:
141141
name: text_optimized
142142
typed_config:
143143
"@type": type.googleapis.com/envoy.extensions.compression.brotli.compressor.v3.Brotli
144-
{{- end }}
145144
{{- if .PrometheusCompressionRemoveAcceptEncodingHeader }}
146145
response_direction_config:
147146
remove_accept_encoding_header: true
148147
{{- end }}
148+
{{- end }}
149149
{{- if eq .PrometheusCompressionLibrary "Zstd"}}
150150
{{- if .PrometheusCompressionChooseFirst }}
151151
choose_first: true
@@ -154,11 +154,11 @@ static_resources:
154154
name: text_optimized
155155
typed_config:
156156
"@type": type.googleapis.com/envoy.extensions.compression.zstd.compressor.v3.Zstd
157-
{{- end }}
158157
{{- if .PrometheusCompressionRemoveAcceptEncodingHeader }}
159158
response_direction_config:
160159
remove_accept_encoding_header: true
161160
{{- end }}
161+
{{- end }}
162162
{{- end }}
163163
- name: envoy.filters.http.router
164164
typed_config:

internal/xds/bootstrap/testdata/render/enable-prometheus-zstd-compression.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ static_resources:
7878
- name: envoy.filters.http.compressor
7979
typed_config:
8080
"@type": type.googleapis.com/envoy.extensions.filters.http.compressor.v3.Compressor
81+
response_direction_config:
82+
remove_accept_encoding_header: true
83+
response_direction_config:
84+
remove_accept_encoding_header: true
8185
choose_first: true
8286
compressor_library:
8387
name: text_optimized

0 commit comments

Comments
 (0)