Add LoadBalancer information to the Ingress view (#1064)

Signed-off-by: Steve Richards <srichards@mirantis.com>
This commit is contained in:
steve richards authored and GitHub committed 2020-10-16 17:13:18 +03:00
1 parent bf20a15819
commit c0b8d472a0
2 files changed
+10

No files matched your search

@@ -107,6 +107,14 @@ export class Ingress extends KubeObject {
}
return ports.join(", ")
}
getLoadBalancers() {
const { status: { loadBalancer = { ingress: [] } } } = this;
return (loadBalancer.ingress ?? []).map(address => (
address.hostname || address.ip
))
}
}
export const ingressApi = new IngressApi({