Skip to content

Commit

Permalink
BUG/MINOR: fix ingress with same path and different ports
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmatmati authored and oktalz committed Mar 9, 2023
1 parent bb2625e commit d20e38f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/store/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,11 @@ func (n ingressNetworkingV1Strategy) ConvertIngress() *Ingress {
if k8sPath.PathType != nil {
pathType = string(*k8sPath.PathType)
}
pathKey := pathType + "-" + k8sPath.Path
if k8sPath.Backend.Service == nil {
logger.Errorf("backend in ingress '%s/%s' should have service but none found", n.ig.GetNamespace(), n.ig.GetName())
continue
}
pathKey := pathType + "-" + k8sPath.Path + "-" + k8sPath.Backend.Service.Port.Name
paths[pathKey] = &IngressPath{
Path: k8sPath.Path,
PathTypeMatch: pathType,
Expand Down

0 comments on commit d20e38f

Please sign in to comment.