stream logs through standard input and new remote client cli command

pull/531/head
Frostebite 2023-06-05 21:23:41 +01:00
parent c366060834
commit 1867dcefbb
3 changed files with 12 additions and 1 deletions

5
dist/index.js generated vendored
View File

@ -3923,6 +3923,11 @@ class KubernetesTaskRunner {
break;
}
}
const configMapLogs = await kubeClient.readNamespacedConfigMap(`${jobName}-logs`, namespace);
if (configMapLogs.body.data) {
const logs = configMapLogs.body.data[`logs`] || ``;
cloud_runner_logger_1.default.log(logs);
}
return output;
}
static async watchUntilPodRunning(kubeClient, podName, namespace) {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -101,6 +101,12 @@ class KubernetesTaskRunner {
}
}
const configMapLogs = await kubeClient.readNamespacedConfigMap(`${jobName}-logs`, namespace);
if (configMapLogs.body.data) {
const logs = configMapLogs.body.data[`logs`] || ``;
CloudRunnerLogger.log(logs);
}
return output;
}