Display namespace of the deployment
Signed-off-by: Deepak Bhardwaj <deepak.bhardwaj@outlook.com>
This commit is contained in:
@@ -18,7 +18,7 @@ import React from 'react';
|
||||
import { V1Deployment } from '@kubernetes/client-node';
|
||||
import { KubernetesDrawer } from '../KubernetesDrawer/KubernetesDrawer';
|
||||
import { renderCondition } from '../../utils/pod';
|
||||
import { Typography, Grid } from '@material-ui/core';
|
||||
import { Typography, Grid, Chip } from '@material-ui/core';
|
||||
|
||||
export const DeploymentDrawer = ({
|
||||
deployment,
|
||||
@@ -66,6 +66,12 @@ export const DeploymentDrawer = ({
|
||||
Deployment
|
||||
</Typography>
|
||||
</Grid>
|
||||
<Grid item>
|
||||
<Chip
|
||||
size="small"
|
||||
label={`namespace: ${deployment.metadata?.namespace}` ?? 'default'}
|
||||
/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</KubernetesDrawer>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user