mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add LoadBalancer information to the Ingress view (#1064)
Signed-off-by: Steve Richards <srichards@mirantis.com>
This commit is contained in:
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({
|
||||
|
||||
Reference in new issue
Block a user