timeout adjusted

pull/437/head
Frostebite 2022-11-01 23:19:59 +00:00
parent 3b5b53e0f5
commit 35b3f8dc57
3 changed files with 5 additions and 1 deletions

2
dist/index.js vendored
View File

@ -3147,6 +3147,8 @@ class Kubernetes {
cloud_runner_logger_1.default.log(`deleting PVC`); cloud_runner_logger_1.default.log(`deleting PVC`);
try { try {
yield this.kubeClient.deleteNamespacedPersistentVolumeClaim(this.pvcName, this.namespace); yield this.kubeClient.deleteNamespacedPersistentVolumeClaim(this.pvcName, this.namespace);
yield this.kubeClient.deleteNamespacedServiceAccount(this.serviceAccountName, this.namespace);
cloud_runner_logger_1.default.log('cleaned up PVC and Service Account');
} }
catch (error) { catch (error) {
cloud_runner_logger_1.default.log(`Cleanup failed ${JSON.stringify(error, undefined, 4)}`); cloud_runner_logger_1.default.log(`Cleanup failed ${JSON.stringify(error, undefined, 4)}`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -247,6 +247,8 @@ class Kubernetes implements ProviderInterface {
try { try {
await this.kubeClient.deleteNamespacedPersistentVolumeClaim(this.pvcName, this.namespace); await this.kubeClient.deleteNamespacedPersistentVolumeClaim(this.pvcName, this.namespace);
await this.kubeClient.deleteNamespacedServiceAccount(this.serviceAccountName, this.namespace);
CloudRunnerLogger.log('cleaned up PVC and Service Account');
} catch (error: any) { } catch (error: any) {
CloudRunnerLogger.log(`Cleanup failed ${JSON.stringify(error, undefined, 4)}`); CloudRunnerLogger.log(`Cleanup failed ${JSON.stringify(error, undefined, 4)}`);
throw error; throw error;