timeout adjusted
parent
3b5b53e0f5
commit
35b3f8dc57
|
|
@ -3147,6 +3147,8 @@ class Kubernetes {
|
|||
cloud_runner_logger_1.default.log(`deleting PVC`);
|
||||
try {
|
||||
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) {
|
||||
cloud_runner_logger_1.default.log(`Cleanup failed ${JSON.stringify(error, undefined, 4)}`);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -247,6 +247,8 @@ class Kubernetes implements ProviderInterface {
|
|||
|
||||
try {
|
||||
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) {
|
||||
CloudRunnerLogger.log(`Cleanup failed ${JSON.stringify(error, undefined, 4)}`);
|
||||
throw error;
|
||||
|
|
|
|||
Loading…
Reference in New Issue