mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Show all pod addresses (#2841)
Signed-off-by: vshakirova <vshakirova@mirantis.com>
This commit is contained in:
1 parent
fa4baf785d
commit
23dadaa1a1
4 files changed
+56
No files matched your search
@@ -77,6 +77,22 @@ export class ServiceDetails extends React.Component<Props> {
|
||||
{spec.clusterIP}
|
||||
</DrawerItem>
|
||||
|
||||
<DrawerItem name="Cluster IPs" hidden={!service.getClusterIps().length} labelsOnly>
|
||||
{
|
||||
service.getClusterIps().map(label => (
|
||||
<Badge key={label} label={label}/>
|
||||
))
|
||||
}
|
||||
</DrawerItem>
|
||||
|
||||
<DrawerItem name="IP families" hidden={!service.getIpFamilies().length}>
|
||||
{service.getIpFamilies().join(", ")}
|
||||
</DrawerItem>
|
||||
|
||||
<DrawerItem name="IP family policy" hidden={!service.getIpFamilyPolicy()}>
|
||||
{service.getIpFamilyPolicy()}
|
||||
</DrawerItem>
|
||||
|
||||
{service.getExternalIps().length > 0 && (
|
||||
<DrawerItem name="External IPs">
|
||||
{service.getExternalIps().map(ip => <div key={ip}>{ip}</div>)}
|
||||
|
||||
@@ -90,6 +90,7 @@ export class PodDetails extends React.Component<Props> {
|
||||
if (!pod) return null;
|
||||
const { status, spec } = pod;
|
||||
const { conditions, podIP } = status;
|
||||
const podIPs = pod.getIPs();
|
||||
const { nodeName } = spec;
|
||||
const nodeSelector = pod.getNodeSelectors();
|
||||
const volumes = pod.getVolumes();
|
||||
@@ -120,6 +121,13 @@ export class PodDetails extends React.Component<Props> {
|
||||
<DrawerItem name="Pod IP">
|
||||
{podIP}
|
||||
</DrawerItem>
|
||||
<DrawerItem name="Pod IPs" hidden={!podIPs.length} labelsOnly>
|
||||
{
|
||||
podIPs.map(label => (
|
||||
<Badge key={label} label={label}/>
|
||||
))
|
||||
}
|
||||
</DrawerItem>
|
||||
<DrawerItem name="Priority Class">
|
||||
{pod.getPriorityClassName()}
|
||||
</DrawerItem>
|
||||
|
||||
Reference in new issue
Block a user