|
@@ -51,7 +51,7 @@ const getLatestPod = (pods: any[]) => {
|
|
|
.shift();
|
|
.shift();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-const renderStatus = (job: any, pods: any[], time: string) => {
|
|
|
|
|
|
|
+const renderStatus = (job: any, time: string) => {
|
|
|
if (job.status?.succeeded >= 1) {
|
|
if (job.status?.succeeded >= 1) {
|
|
|
return <Status color="#38a88a">Succeeded {time}</Status>;
|
|
return <Status color="#38a88a">Succeeded {time}</Status>;
|
|
|
}
|
|
}
|
|
@@ -204,7 +204,7 @@ const ExpandedJobRun = ({
|
|
|
<LogsSection
|
|
<LogsSection
|
|
|
isFullscreen={false}
|
|
isFullscreen={false}
|
|
|
setIsFullscreen={() => {}}
|
|
setIsFullscreen={() => {}}
|
|
|
- overridingPodName={pods[0].metadata.name}
|
|
|
|
|
|
|
+ overridingPodName={pods[0]?.metadata?.name || jobRun.metadata?.name}
|
|
|
setInitData={() => {}}
|
|
setInitData={() => {}}
|
|
|
currentChart={currentChart}
|
|
currentChart={currentChart}
|
|
|
/>
|
|
/>
|
|
@@ -256,7 +256,6 @@ const ExpandedJobRun = ({
|
|
|
<LastDeployed>
|
|
<LastDeployed>
|
|
|
{renderStatus(
|
|
{renderStatus(
|
|
|
run,
|
|
run,
|
|
|
- pods,
|
|
|
|
|
run.status.completionTime
|
|
run.status.completionTime
|
|
|
? readableDate(run.status.completionTime)
|
|
? readableDate(run.status.completionTime)
|
|
|
: ""
|
|
: ""
|