1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Add Service Account in pods details

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>
This commit is contained in:
Piotr Roszatycki 2022-08-18 16:16:45 +02:00
parent 3e02229920
commit ab63cdfeb5
2 changed files with 7 additions and 0 deletions

View File

@ -840,6 +840,10 @@ export class Pod extends KubeObject<
return this.spec?.priorityClassName || "";
}
getServiceAccountName() {
return this.spec?.serviceAccountName || "";
}
getStatus(): PodStatusPhase {
const phase = this.getStatusPhase();
const reason = this.getReason();

View File

@ -116,6 +116,9 @@ export class PodDetails extends React.Component<PodDetailsProps> {
>
{podIPs.map(label => <Badge key={label} label={label} />)}
</DrawerItem>
<DrawerItem name="Service Account">
{pod.getServiceAccountName()}
</DrawerItem>
<DrawerItem name="Priority Class">
{pod.getPriorityClassName()}
</DrawerItem>