Better displaying container's info for Pods (#7331)

* Better displaying container's info for Pods and all tooltips with `formatters={{tableView: true}}`

Signed-off-by: Roman <ixrock@gmail.com>

* fix: keep containerID on a single line

Signed-off-by: Roman <ixrock@gmail.com>

* nope, i can :P (make it perfect)

Signed-off-by: Roman <ixrock@gmail.com>

---------

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman authored and GitHub committed 2023-03-10 08:34:52 -05:00
1 parent a5928d09cd
commit 34aed58ff0
3 files changed
+53 -41

No files matched your search

@@ -80,6 +80,8 @@ export interface ContainerState {
terminated?: ContainerStateTerminated;
}
export type ContainerStateValues = Partial<ContainerState[keyof ContainerState]>;
export interface PodContainerStatus {
name: string;
state?: ContainerState;
@@ -649,7 +651,7 @@ export class Pod extends KubeObject<
.filter(({ name }) => runningContainerNames.has(name));
}
getContainerStatuses(includeInitContainers = true) {
getContainerStatuses(includeInitContainers = true): PodContainerStatus[] {
const { containerStatuses = [], initContainerStatuses = [] } = this.status ?? {};
if (includeInitContainers) {