Skip to content

Commit

Permalink
Adding image name in job details (armadaproject#3507)
Browse files Browse the repository at this point in the history
* Adding image name in job details

* typo

* delete comment
  • Loading branch information
mijovicmia authored Apr 9, 2024
1 parent 1fc5822 commit 273a5eb
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { IGetJobSpecService } from "../../../services/lookoutV2/GetJobSpecServic
export interface ContainerData {
name: string
command: string
image: string
args: string
resources: Record<string, string>
}
Expand All @@ -26,6 +27,7 @@ const getContainerData = (container: any): ContainerData => {
name: "",
command: "",
args: "",
image: "",
resources: {},
}
if (container.name) {
Expand All @@ -40,6 +42,9 @@ const getContainerData = (container: any): ContainerData => {
if (container.resources && (container.resources as Record<string, unknown>).limits) {
details.resources = (container.resources as Record<string, unknown>).limits as Record<string, string>
}
if (container.image) {
details.image = container.image as string
}
return details
}

Expand Down Expand Up @@ -108,6 +113,17 @@ const SingleContainerDetails = ({ container, openByDefault }: { container: Conta
}))}
/>
</div>
<div>
<Typography>Details</Typography>
<KeyValuePairTable
data={[
{
key: "image",
value: container.image,
},
]}
/>
</div>
</div>
</Collapse>
</>
Expand Down

0 comments on commit 273a5eb

Please sign in to comment.