fix nginx conf test error when not found active service endpoints
This commit is contained in:
parent
7de7cca42e
commit
aeab7035f8
1 changed files with 1 additions and 0 deletions
|
@ -523,6 +523,7 @@ func (n *NGINXController) getBackendServers(ingresses []*extensions.Ingress) ([]
|
||||||
if upstream.Name == location.Backend {
|
if upstream.Name == location.Backend {
|
||||||
if len(upstream.Endpoints) == 0 {
|
if len(upstream.Endpoints) == 0 {
|
||||||
glog.V(3).Infof("Upstream %q does not have any active endpoints.", upstream.Name)
|
glog.V(3).Infof("Upstream %q does not have any active endpoints.", upstream.Name)
|
||||||
|
location.Backend = "" // for nginx.tmpl checking
|
||||||
|
|
||||||
// check if the location contains endpoints and a custom default backend
|
// check if the location contains endpoints and a custom default backend
|
||||||
if location.DefaultBackend != nil {
|
if location.DefaultBackend != nil {
|
||||||
|
|
Loading…
Reference in a new issue