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:
parent
a33bbeacb3
commit
2e7fbac9fa
@ -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();
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user