Fix "invalid port in upstream" on nginx controller

This commit is contained in:
Giancarlo Rubio 2016-12-14 17:42:34 +01:00
parent 0af8cccc7f
commit bda6646905
2 changed files with 2 additions and 2 deletions

View file

@ -982,7 +982,7 @@ func (ic *GenericController) getEndpoints(
}
// check for invalid port value
if targetPort == -1 {
if targetPort <=0 {
continue
}