Add Service Account in pods details

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>
This commit is contained in:
Piotr Roszatycki committed 2022-08-18 16:16:45 +02:00
1 parent 3e02229920
commit ab63cdfeb5
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>