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 authored and GitHub committed 2022-08-19 04:40:43 -07:00
1 parent a33bbeacb3
commit 2e7fbac9fa
2 files changed
+7

No files matched your search

+4
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();
@@ -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>