mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
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) {
|
||||
|
||||
Reference in new issue
Block a user