Skip to content

Commit

Permalink
internal/dag: report missing service port in tcpproxy status
Browse files Browse the repository at this point in the history
Fixes projectcontour#858

Signed-off-by: Dave Cheney <[email protected]>
  • Loading branch information
davecheney committed Jan 25, 2019
1 parent c339b3a commit f0d363c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/dag/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ func (b *builder) processTCPProxy(ir *ingressroutev1.IngressRoute, visited []*in
m := meta{name: service.Name, namespace: ir.Namespace}
s := b.lookupTCPService(m, intstr.FromInt(service.Port), service.Weight, service.Strategy, service.HealthCheck)
if s == nil {
b.setStatus(Status{Object: ir, Status: StatusInvalid, Description: fmt.Sprintf("tcpproxy: service %s/%s: not found", ir.Namespace, service.Name), Vhost: host})
b.setStatus(Status{Object: ir, Status: StatusInvalid, Description: fmt.Sprintf("tcpproxy: service %s/%s/%d: not found", ir.Namespace, service.Name, service.Port), Vhost: host})
return
}
ts = append(ts, s)
Expand Down

0 comments on commit f0d363c

Please sign in to comment.