fix(k8s): fixed generating kube auction summary issue (#5331)

pull/5308/head
fhanportainer 3 years ago committed by GitHub
parent 89756b2e01
commit 308f828446
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -57,7 +57,9 @@ export class KubernetesIngressConverter {
rule.IngressName = ingress.Name;
rule.ServiceName = serviceName;
rule.Port = p.ContainerPort;
rule.Path = _.startsWith(p.IngressRoute, '/') ? p.IngressRoute : '/' + p.IngressRoute;
if (p.IngressRoute) {
rule.Path = _.startsWith(p.IngressRoute, '/') ? p.IngressRoute : '/' + p.IngressRoute;
}
rule.Host = p.IngressHost;
ingress.Paths.push(rule);
}

Loading…
Cancel
Save