From addbc8b5b4c8e7c0406505dcd302f9d7d978392f Mon Sep 17 00:00:00 2001 From: DewaldV Date: Tue, 29 Nov 2022 15:31:09 +0000 Subject: [PATCH] AIRSHIP-2080 Fix names for config properties --- pkg/envoy/boilerplate.go | 4 ++-- pkg/envoy/configurator.go | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/envoy/boilerplate.go b/pkg/envoy/boilerplate.go index a807448..8b051ed 100644 --- a/pkg/envoy/boilerplate.go +++ b/pkg/envoy/boilerplate.go @@ -167,8 +167,8 @@ func makeGrpcLoggerConfig(cfg HttpGrpcLogger) *gal.HttpGrpcAccessLogConfig { }, TransportApiVersion: core.ApiVersion_V3, }, - AdditionalRequestHeadersToLog: cfg.AdditionalRequestHeaders, - AdditionalResponseHeadersToLog: cfg.AdditionalResponseHeaders, + AdditionalRequestHeadersToLog: cfg.RequestHeaders, + AdditionalResponseHeadersToLog: cfg.ResponseHeaders, } } diff --git a/pkg/envoy/configurator.go b/pkg/envoy/configurator.go index 58e934a..43733cd 100644 --- a/pkg/envoy/configurator.go +++ b/pkg/envoy/configurator.go @@ -39,11 +39,11 @@ type HttpExtAuthz struct { } type HttpGrpcLogger struct { - Name string `json:"name"` - Cluster string `json:"cluster"` - Timeout time.Duration `json:"timeout"` - AdditionalRequestHeaders []string `json:"additionalRequestHeaders"` - AdditionalResponseHeaders []string `json:"additionalResponseHeaders"` + Name string `json:"name"` + Cluster string `json:"cluster"` + Timeout time.Duration `json:"timeout"` + RequestHeaders []string `json:"requestHeaders"` + ResponseHeaders []string `json:"responseHeaders"` } //KubernetesConfigurator takes a given Ingress Class and lister to find only ingresses of that class