diff --git a/app/kubernetes/helpers/application/index.js b/app/kubernetes/helpers/application/index.js index 82aa97c4e..657e63afd 100644 --- a/app/kubernetes/helpers/application/index.js +++ b/app/kubernetes/helpers/application/index.js @@ -282,7 +282,7 @@ class KubernetesApplicationHelper { res.IngressName = rule.IngressName; res.IngressRoute = rule.Path; res.IngressHost = rule.Host; - res.IngressHosts = ingress.find((i) => i.Name === rule.IngressName).Hosts; + res.IngressHosts = ingress && ingress.find((i) => i.Name === rule.IngressName).Hosts; } res.Protocol = port.Protocol; res.ContainerPort = port.TargetPort;