1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

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>
This commit is contained in:
cong meng 2021-07-09 10:39:14 +12:00 committed by Simon Meng
parent c6b770d697
commit 33b428eb7f

View file

@ -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;