Add TCP and UDP services removed in migration

This commit is contained in:
Manuel de Brito Fontes 2017-01-08 21:31:16 -03:00
parent 28c67257e3
commit ba98383c2d
3 changed files with 51 additions and 2 deletions

View file

@ -425,7 +425,7 @@ func (ic *GenericController) getStreamServices(data map[string]string, proto api
// k -> port to expose
// v -> <namespace>/<service name>:<port from service to be used>
for k, v := range data {
port, err := strconv.Atoi(k)
_, err := strconv.Atoi(k)
if err != nil {
glog.Warningf("%v is not valid as a TCP port", k)
continue
@ -495,7 +495,7 @@ func (ic *GenericController) getStreamServices(data map[string]string, proto api
svcs = append(svcs, &ingress.Location{
Path: k,
Backend: fmt.Sprintf("%v-%v-%v", svcNs, svcName, port),
Backend: fmt.Sprintf("%v-%v-%v", svcNs, svcName, svcPort),
})
}