Add annotation to disable logs in a location (#2144)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-02-25 11:38:54 -03:00 committed by GitHub
parent edb3be64ea
commit 0dee303ac2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 165 additions and 0 deletions

View file

@ -427,6 +427,7 @@ func (n *NGINXController) getBackendServers(ingresses []*extensions.Ingress) ([]
loc.XForwardedPrefix = anns.XForwardedPrefix
loc.UsePortInRedirects = anns.UsePortInRedirects
loc.Connection = anns.Connection
loc.Logs = anns.Logs
if loc.Redirect.FromToWWW {
server.RedirectFromToWWW = true
@ -460,6 +461,7 @@ func (n *NGINXController) getBackendServers(ingresses []*extensions.Ingress) ([]
XForwardedPrefix: anns.XForwardedPrefix,
UsePortInRedirects: anns.UsePortInRedirects,
Connection: anns.Connection,
Logs: anns.Logs,
}
if loc.Redirect.FromToWWW {