1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Add image sha256 in pod inspector (#2252)

Signed-off-by: vshakirova <vshakirova@mirantis.com>
This commit is contained in:
Violetta 2021-03-10 12:31:24 +04:00 committed by GitHub
parent 1b0f56f417
commit 20709d63e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,7 @@ export class PodDetailsContainer extends React.Component<Props> {
const state = status ? Object.keys(status.state)[0] : ""; const state = status ? Object.keys(status.state)[0] : "";
const lastState = status ? Object.keys(status.lastState)[0] : ""; const lastState = status ? Object.keys(status.lastState)[0] : "";
const ready = status ? status.ready : ""; const ready = status ? status.ready : "";
const imageId = status? status.imageID : "";
const liveness = pod.getLivenessProbe(container); const liveness = pod.getLivenessProbe(container);
const readiness = pod.getReadinessProbe(container); const readiness = pod.getReadinessProbe(container);
const startup = pod.getStartupProbe(container); const startup = pod.getStartupProbe(container);
@ -84,7 +85,7 @@ export class PodDetailsContainer extends React.Component<Props> {
</DrawerItem> </DrawerItem>
} }
<DrawerItem name="Image"> <DrawerItem name="Image">
{image} <Badge label={image} tooltip={imageId}/>
</DrawerItem> </DrawerItem>
{imagePullPolicy && imagePullPolicy !== "IfNotPresent" && {imagePullPolicy && imagePullPolicy !== "IfNotPresent" &&
<DrawerItem name="ImagePullPolicy"> <DrawerItem name="ImagePullPolicy">