stream logs through standard input and new remote client cli command

This commit is contained in:
Frostebite 2023-06-05 21:23:41 +01:00
parent c366060834
commit 1867dcefbb
3 changed files with 6 additions and 0 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

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;
}