EE-1110 Ingress routes and their mapping to a application name are not deleted when the application is deleted (#5291)
Co-authored-by: Simon Meng <simon.meng@portainer.io>528
parent
c6b770d697
commit
33b428eb7f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue