Merge pull request #1802 from aledbf/fix-vars

Automatic merge from submit-queue

[nginx-ingress-controller] Initialize proxy_upstream_name variable

fixes #1801
This commit is contained in:
Kubernetes Submit Queue 2016-09-29 11:28:25 -07:00 committed by GitHub
commit 90d8402293

View file

@ -314,6 +314,7 @@ http {
} }
location / { location / {
set $proxy_upstream_name "upstream-default-backend";
proxy_pass http://upstream-default-backend; proxy_pass http://upstream-default-backend;
} }
{{- template "CUSTOM_ERRORS" $cfg }} {{- template "CUSTOM_ERRORS" $cfg }}
@ -322,6 +323,7 @@ http {
# default server for services without endpoints # default server for services without endpoints
server { server {
listen 8181; listen 8181;
set $proxy_upstream_name "-";
location / { location / {
{{ if .customErrors }} {{ if .customErrors }}