fixes
parent
c4e311f643
commit
6c1e8c4615
|
@ -3802,15 +3802,21 @@ class KubernetesTaskRunner {
|
||||||
const phase = status?.body.status?.phase;
|
const phase = status?.body.status?.phase;
|
||||||
success = phase === 'Running';
|
success = phase === 'Running';
|
||||||
message = `Phase:${status.body.status?.phase} \n Reason:${status.body.status?.conditions?.[0].reason || ''} \n Message:${status.body.status?.conditions?.[0].message || ''}`;
|
message = `Phase:${status.body.status?.phase} \n Reason:${status.body.status?.conditions?.[0].reason || ''} \n Message:${status.body.status?.conditions?.[0].message || ''}`;
|
||||||
cloud_runner_logger_1.default.log(JSON.stringify((await kubeClient.listNamespacedEvent(namespace)).body.items
|
// CloudRunnerLogger.log(
|
||||||
.map((x) => {
|
// JSON.stringify(
|
||||||
return {
|
// (await kubeClient.listNamespacedEvent(namespace)).body.items
|
||||||
message: x.message || ``,
|
// .map((x) => {
|
||||||
name: x.metadata.name || ``,
|
// return {
|
||||||
reason: x.reason || ``,
|
// message: x.message || ``,
|
||||||
};
|
// name: x.metadata.name || ``,
|
||||||
})
|
// reason: x.reason || ``,
|
||||||
.filter((x) => x.name.includes(podName)), undefined, 4));
|
// };
|
||||||
|
// })
|
||||||
|
// .filter((x) => x.name.includes(podName)),
|
||||||
|
// undefined,
|
||||||
|
// 4,
|
||||||
|
// ),
|
||||||
|
// );
|
||||||
if (success || phase !== 'Pending')
|
if (success || phase !== 'Pending')
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -98,21 +98,22 @@ class KubernetesTaskRunner {
|
||||||
message = `Phase:${status.body.status?.phase} \n Reason:${
|
message = `Phase:${status.body.status?.phase} \n Reason:${
|
||||||
status.body.status?.conditions?.[0].reason || ''
|
status.body.status?.conditions?.[0].reason || ''
|
||||||
} \n Message:${status.body.status?.conditions?.[0].message || ''}`;
|
} \n Message:${status.body.status?.conditions?.[0].message || ''}`;
|
||||||
CloudRunnerLogger.log(
|
|
||||||
JSON.stringify(
|
// CloudRunnerLogger.log(
|
||||||
(await kubeClient.listNamespacedEvent(namespace)).body.items
|
// JSON.stringify(
|
||||||
.map((x) => {
|
// (await kubeClient.listNamespacedEvent(namespace)).body.items
|
||||||
return {
|
// .map((x) => {
|
||||||
message: x.message || ``,
|
// return {
|
||||||
name: x.metadata.name || ``,
|
// message: x.message || ``,
|
||||||
reason: x.reason || ``,
|
// name: x.metadata.name || ``,
|
||||||
};
|
// reason: x.reason || ``,
|
||||||
})
|
// };
|
||||||
.filter((x) => x.name.includes(podName)),
|
// })
|
||||||
undefined,
|
// .filter((x) => x.name.includes(podName)),
|
||||||
4,
|
// undefined,
|
||||||
),
|
// 4,
|
||||||
);
|
// ),
|
||||||
|
// );
|
||||||
if (success || phase !== 'Pending') return true;
|
if (success || phase !== 'Pending') return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue