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 vendored
View File

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

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

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

View File

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