fixes
parent
c5b1bade2c
commit
0a8fa4679b
|
@ -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;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue