mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Show runtimeClassName in pods view
Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>
This commit is contained in:
parent
e8f691ab0e
commit
c43ff22eb6
@ -714,6 +714,10 @@ export class Pod extends KubeObject<
|
||||
return this.spec?.priorityClassName || "";
|
||||
}
|
||||
|
||||
getRuntimeClassName() {
|
||||
return this.spec?.runtimeClassName || "";
|
||||
}
|
||||
|
||||
getServiceAccountName() {
|
||||
return this.spec?.serviceAccountName || "";
|
||||
}
|
||||
|
||||
@ -119,12 +119,15 @@ export class PodDetails extends React.Component<PodDetailsProps> {
|
||||
<DrawerItem name="Service Account">
|
||||
{pod.getServiceAccountName()}
|
||||
</DrawerItem>
|
||||
<DrawerItem name="Priority Class">
|
||||
<DrawerItem name="Priority Class" hidden={pod.getPriorityClassName() === ""}>
|
||||
{pod.getPriorityClassName()}
|
||||
</DrawerItem>
|
||||
<DrawerItem name="QoS Class">
|
||||
{pod.getQosClass()}
|
||||
</DrawerItem>
|
||||
<DrawerItem name="Runtime Class" hidden={pod.getRuntimeClassName() === ""}>
|
||||
{pod.getRuntimeClassName()}
|
||||
</DrawerItem>
|
||||
|
||||
<DrawerItem
|
||||
name="Conditions"
|
||||
@ -155,31 +158,35 @@ export class PodDetails extends React.Component<PodDetailsProps> {
|
||||
<PodDetailsSecrets pod={pod} />
|
||||
</DrawerItem>
|
||||
|
||||
{initContainers.length > 0 && (
|
||||
<>
|
||||
<DrawerTitle>Init Containers</DrawerTitle>
|
||||
{initContainers.map(container => (
|
||||
<PodDetailsContainer
|
||||
key={container.name}
|
||||
pod={pod}
|
||||
container={container}
|
||||
/>
|
||||
))}
|
||||
</>
|
||||
)}
|
||||
{
|
||||
initContainers.length > 0 && (
|
||||
<>
|
||||
<DrawerTitle>Init Containers</DrawerTitle>
|
||||
{initContainers.map(container => (
|
||||
<PodDetailsContainer
|
||||
key={container.name}
|
||||
pod={pod}
|
||||
container={container}
|
||||
/>
|
||||
))}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
<DrawerTitle>Containers</DrawerTitle>
|
||||
{containers.map(container => (
|
||||
<PodDetailsContainer
|
||||
key={container.name}
|
||||
pod={pod}
|
||||
container={container}
|
||||
metrics={getItemMetrics(toJS(this.containerMetrics), container.name)}
|
||||
/>
|
||||
))}
|
||||
{
|
||||
containers.map(container => (
|
||||
<PodDetailsContainer
|
||||
key={container.name}
|
||||
pod={pod}
|
||||
container={container}
|
||||
metrics={getItemMetrics(toJS(this.containerMetrics), container.name)}
|
||||
/>
|
||||
))
|
||||
}
|
||||
|
||||
<PodVolumes pod={pod} />
|
||||
</div>
|
||||
</div >
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user