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 (#6050)

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>
This commit is contained in:
Piotr Roszatycki 2022-08-19 13:40:43 +02:00 committed by GitHub
parent a33bbeacb3
commit 2e7fbac9fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -840,6 +840,10 @@ export class Pod extends KubeObject<
return this.spec?.priorityClassName || ""; return this.spec?.priorityClassName || "";
} }
getServiceAccountName() {
return this.spec?.serviceAccountName || "";
}
getStatus(): PodStatusPhase { getStatus(): PodStatusPhase {
const phase = this.getStatusPhase(); const phase = this.getStatusPhase();
const reason = this.getReason(); 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} />)} {podIPs.map(label => <Badge key={label} label={label} />)}
</DrawerItem> </DrawerItem>
<DrawerItem name="Service Account">
{pod.getServiceAccountName()}
</DrawerItem>
<DrawerItem name="Priority Class"> <DrawerItem name="Priority Class">
{pod.getPriorityClassName()} {pod.getPriorityClassName()}
</DrawerItem> </DrawerItem>