Merge pull request #3344 from ecosia/jg-customerrors-per-ingress

Adds CustomHTTPErrors ingress annotation and test
This commit is contained in:
k8s-ci-robot 2018-11-06 09:21:49 -08:00 committed by GitHub
commit 265f96bf14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 294 additions and 11 deletions

View file

@ -351,6 +351,7 @@ func (n *NGINXController) getBackendServers(ingresses []*extensions.Ingress) ([]
loc.InfluxDB = anns.InfluxDB
loc.DefaultBackend = anns.DefaultBackend
loc.BackendProtocol = anns.BackendProtocol
loc.CustomHTTPErrors = anns.CustomHTTPErrors
if loc.Redirect.FromToWWW {
server.RedirectFromToWWW = true
@ -391,6 +392,7 @@ func (n *NGINXController) getBackendServers(ingresses []*extensions.Ingress) ([]
InfluxDB: anns.InfluxDB,
DefaultBackend: anns.DefaultBackend,
BackendProtocol: anns.BackendProtocol,
CustomHTTPErrors: anns.CustomHTTPErrors,
}
if loc.Redirect.FromToWWW {