diff --git a/frontend/src/components/common/Resource/Resource.tsx b/frontend/src/components/common/Resource/Resource.tsx
index 563761d462..7df8ad6d77 100644
--- a/frontend/src/components/common/Resource/Resource.tsx
+++ b/frontend/src/components/common/Resource/Resource.tsx
@@ -850,7 +850,13 @@ export function ContainersSection(props: { resource: KubeObjectInterface | null
return resource?.spec?.initContainers || [];
}
- function getStatuses() {
+ function getEphemeralContainers() {
+ return resource?.spec?.ephemeralContainers || [];
+ }
+
+ function getStatuses(
+ statusKind: 'containerStatuses' | 'initContainerStatuses' | 'ephemeralContainerStatuses'
+ ) {
if (!resource || resource.kind !== 'Pod') {
return {};
}
@@ -859,7 +865,7 @@ export function ContainersSection(props: { resource: KubeObjectInterface | null
[key: string]: ContainerInfoProps['status'];
} = {};
- ((resource as KubePod).status.containerStatuses || []).forEach(containerStatus => {
+ ((resource as KubePod).status[statusKind] || []).forEach(containerStatus => {
const { name, ...status } = containerStatus;
statuses[name] = { ...status };
});
@@ -869,7 +875,10 @@ export function ContainersSection(props: { resource: KubeObjectInterface | null
const containers = getContainers();
const initContainers = getInitContainers();
- const statuses = getStatuses();
+ const ephemContainers = getEphemeralContainers();
+ const statuses = getStatuses('containerStatuses');
+ const initStatuses = getStatuses('initContainerStatuses');
+ const ephemStatuses = getStatuses('ephemeralContainerStatuses');
const numContainers = containers.length;
return (
@@ -889,6 +898,19 @@ export function ContainersSection(props: { resource: KubeObjectInterface | null
)}
+ {ephemContainers.length > 0 && (
+
+ + ID: + + + docker.io/library/busybox@sha256:125113b35efe765c89a8ed49593e719532318d26828c58e26b26dd7c4c28a673 +