This commit is contained in:
@@ -533,6 +533,14 @@ function statusSummary(payload: Record<string, unknown>): Record<string, unknown
|
||||
const pipelineRuns = arrayRecords(payload.pipelineRuns);
|
||||
const latest = pipelineRuns[0] ?? {};
|
||||
const taskRuns = arrayRecords(payload.taskRuns);
|
||||
const argo = record(payload.argo);
|
||||
const runtime = record(payload.runtime);
|
||||
const artifact = {
|
||||
...record(payload.artifact),
|
||||
imageStatus: record(payload.artifact).imageStatus ?? (runtime.image === undefined ? undefined : "runtime"),
|
||||
digest: record(payload.artifact).digest ?? runtime.digest,
|
||||
gitopsCommit: record(payload.artifact).gitopsCommit ?? argo.revision,
|
||||
};
|
||||
return {
|
||||
ready: payload.crdPresent === true && String(payload.controllerReady ?? "0/0") !== "0/0",
|
||||
crdPresent: payload.crdPresent === true,
|
||||
@@ -541,8 +549,9 @@ function statusSummary(payload: Record<string, unknown>): Record<string, unknown
|
||||
webhookCount: arrayRecords(payload.webhooks).length,
|
||||
latestPipelineRun: latest,
|
||||
taskRuns,
|
||||
artifact: record(payload.artifact),
|
||||
argo: record(payload.argo),
|
||||
artifact,
|
||||
argo,
|
||||
runtime,
|
||||
valuesPrinted: false,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user