Commit 4320e7a8 authored by Geoff Simmons's avatar Geoff Simmons

Bugfix decoding the port of an IngressBackend Service.

parent d714e1bb
...@@ -250,7 +250,12 @@ func (worker *NamespaceWorker) ingBackend2Addrs( ...@@ -250,7 +250,12 @@ func (worker *NamespaceWorker) ingBackend2Addrs(
} }
extPort = svc.Spec.Ports[idx].TargetPort.String() extPort = svc.Spec.Ports[idx].TargetPort.String()
} else { } else {
extPort = backend.Service.Port.String() if backend.Service.Port.Number != 0 {
extPort = strconv.Itoa(int(
backend.Service.Port.Number))
} else {
extPort = backend.Service.Port.Name
}
} }
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment