Fix log format after #4557

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-09-18 12:33:26 -03:00
parent c481296610
commit 4b4176c830
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
6 changed files with 3 additions and 70 deletions

View file

@ -151,7 +151,6 @@ var (
"buildUpstreamName": buildUpstreamName,
"isLocationInLocationList": isLocationInLocationList,
"isLocationAllowed": isLocationAllowed,
"buildLogFormatUpstream": buildLogFormatUpstream,
"buildDenyVariable": buildDenyVariable,
"getenv": os.Getenv,
"contains": strings.Contains,
@ -462,16 +461,6 @@ func buildAuthResponseHeaders(headers []string) []string {
return res
}
func buildLogFormatUpstream(input interface{}) string {
cfg, ok := input.(config.Configuration)
if !ok {
klog.Errorf("expected a 'config.Configuration' type but %T was returned", input)
return ""
}
return cfg.BuildLogFormatUpstream()
}
// buildProxyPass produces the proxy pass string, if the ingress has redirects
// (specified through the nginx.ingress.kubernetes.io/rewrite-target annotation)
// If the annotation nginx.ingress.kubernetes.io/add-base-url:"true" is specified it will