pull/524/head
Frostebite 2023-03-17 21:57:58 +00:00
parent c5b1bade2c
commit 0a8fa4679b
4 changed files with 5 additions and 13 deletions

8
dist/index.js generated vendored
View File

@ -3130,10 +3130,8 @@ class Kubernetes {
while (true) {
try {
let existsAlready = false;
let status;
try {
status = (await this.kubeClient.readNamespacedPodStatus(this.podName, this.namespace)).body.status;
cloud_runner_logger_1.default.log(JSON.stringify(status?.containerStatuses, undefined, 4));
(await this.kubeClient.readNamespacedPodStatus(this.podName, this.namespace)).body.status;
existsAlready = true;
}
catch {
@ -3786,9 +3784,7 @@ class KubernetesTaskRunner {
}
}
catch (error) {
cloud_runner_logger_1.default.log('k8s task runner failed');
cloud_runner_logger_1.default.log(JSON.stringify(error?.response?.body, undefined, 4));
cloud_runner_logger_1.default.log(JSON.stringify(error, undefined, 4));
cloud_runner_logger_1.default.log(`k8s task runner failed ${JSON.stringify(error, undefined, 4)}`);
}
cloud_runner_logger_1.default.log('end of log stream');
return output;

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -135,10 +135,8 @@ class Kubernetes implements ProviderInterface {
while (true) {
try {
let existsAlready = false;
let status;
try {
status = (await this.kubeClient.readNamespacedPodStatus(this.podName, this.namespace)).body.status;
CloudRunnerLogger.log(JSON.stringify(status?.containerStatuses, undefined, 4));
(await this.kubeClient.readNamespacedPodStatus(this.podName, this.namespace)).body.status;
existsAlready = true;
} catch {
// empty

View File

@ -77,9 +77,7 @@ class KubernetesTaskRunner {
throw new Error(`No logs streamed from k8s`);
}
} catch (error: any) {
CloudRunnerLogger.log('k8s task runner failed');
CloudRunnerLogger.log(JSON.stringify(error?.response?.body, undefined, 4));
CloudRunnerLogger.log(JSON.stringify(error, undefined, 4));
CloudRunnerLogger.log(`k8s task runner failed ${JSON.stringify(error, undefined, 4)}`);
}
CloudRunnerLogger.log('end of log stream');