We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb2625e commit d20e38fCopy full SHA for d20e38f
pkg/store/convert.go
@@ -271,7 +271,11 @@ func (n ingressNetworkingV1Strategy) ConvertIngress() *Ingress {
271
if k8sPath.PathType != nil {
272
pathType = string(*k8sPath.PathType)
273
}
274
- pathKey := pathType + "-" + k8sPath.Path
+ if k8sPath.Backend.Service == nil {
275
+ logger.Errorf("backend in ingress '%s/%s' should have service but none found", n.ig.GetNamespace(), n.ig.GetName())
276
+ continue
277
+ }
278
+ pathKey := pathType + "-" + k8sPath.Path + "-" + k8sPath.Backend.Service.Port.Name
279
paths[pathKey] = &IngressPath{
280
Path: k8sPath.Path,
281
PathTypeMatch: pathType,
0 commit comments