Show all pod addresses (#2841)

Signed-off-by: vshakirova <vshakirova@mirantis.com>
This commit is contained in:
Violetta authored and GitHub committed 2021-05-28 09:14:09 -04:00
1 parent fa4baf785d
commit 23dadaa1a1
4 files changed
+56

No files matched your search

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