diff --git a/dashboard/client/api/endpoints/pods.api.ts b/dashboard/client/api/endpoints/pods.api.ts index bed1e52928..adb00cbea7 100644 --- a/dashboard/client/api/endpoints/pods.api.ts +++ b/dashboard/client/api/endpoints/pods.api.ts @@ -175,6 +175,10 @@ export class Pod extends WorkloadKubeObject { persistentVolumeClaim: { claimName: string; }; + emptyDir: { + medium?: string; + sizeLimit?: string; + }; secret: { secretName: string; defaultMode: number; diff --git a/dashboard/client/components/+workloads-pods/pod-details.tsx b/dashboard/client/components/+workloads-pods/pod-details.tsx index a4b66df672..ec406ce0d0 100644 --- a/dashboard/client/components/+workloads-pods/pod-details.tsx +++ b/dashboard/client/components/+workloads-pods/pod-details.tsx @@ -176,6 +176,8 @@ export class PodDetails extends React.Component { Volumes}/> {volumes.map(volume => { const claimName = volume.persistentVolumeClaim ? volume.persistentVolumeClaim.claimName : null; + const type = Object.keys(volume)[1] + return (
@@ -183,8 +185,23 @@ export class PodDetails extends React.Component { {volume.name}
Type}> - {Object.keys(volume)[1]} + {type} + { type === "emptyDir" && ( +
+ { volume.emptyDir.medium && ( + Medium}> + {volume.emptyDir.medium} + + )} + { volume.emptyDir.sizeLimit && ( + Size Limit}> + {volume.emptyDir.sizeLimit} + + )} +
+ )} + {claimName && ( Claim Name}>