Skip to content

Commit

Permalink
Merge pull request #70 from uswitch/airship-2080-fix-request-header-c…
Browse files Browse the repository at this point in the history
…onfig

AIRSHIP-2080 Fix names for config properties
  • Loading branch information
DewaldV authored Nov 29, 2022
2 parents 01bd28d + addbc8b commit d725353
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pkg/envoy/boilerplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down
10 changes: 5 additions & 5 deletions pkg/envoy/configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d725353

Please sign in to comment.