Skip to content

Commit ad9f2d3

Browse files
committed
PR feedback
1 parent f783857 commit ad9f2d3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/model/cloud-runner/providers/k8s/kubernetes-pods.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ class KubernetesPods {
9393
for (let i = 0; i < 6; i++) {
9494
await new Promise((resolve) => setTimeout(resolve, 5000));
9595
try {
96-
const updatedPod = (
97-
await kubeClient.listNamespacedPod(namespace)
98-
).body.items.find((x) => podName === x.metadata?.name);
96+
const updatedPod = (await kubeClient.listNamespacedPod(namespace)).body.items.find(
97+
(x) => podName === x.metadata?.name,
98+
);
9999
if (updatedPod?.status?.containerStatuses && updatedPod.status.containerStatuses.length > 0) {
100100
const updatedContainerStatus = updatedPod.status.containerStatuses[0];
101101
if (updatedContainerStatus.state?.terminated) {
@@ -109,9 +109,7 @@ class KubernetesPods {
109109
CloudRunnerLogger.log(
110110
`Pod ${podName} container failed with exit code ${updatedExitCode} after waiting.`,
111111
);
112-
errorDetails.push(
113-
`Container terminated after wait: exit code ${updatedExitCode}`,
114-
);
112+
errorDetails.push(`Container terminated after wait: exit code ${updatedExitCode}`);
115113
break;
116114
}
117115
}

0 commit comments

Comments
 (0)