Delete PVC

pull/265/head
Frostebite 2021-05-28 18:57:05 +01:00
parent 1051a8c125
commit ecd865f092
3 changed files with 3 additions and 1 deletions

1
dist/index.js vendored
View File

@ -1083,6 +1083,7 @@ class Kubernetes {
static cleanup() {
return __awaiter(this, void 0, void 0, function* () {
yield this.kubeClientBatch.deleteNamespacedJob(this.jobName, this.namespace);
yield this.kubeClient.deletePersistentVolume(this.pvcName, this.namespace);
yield this.kubeClient.deleteNamespacedSecret(this.secretName, this.namespace);
});
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -378,6 +378,7 @@ class Kubernetes {
static async cleanup() {
await this.kubeClientBatch.deleteNamespacedJob(this.jobName, this.namespace);
await this.kubeClient.deletePersistentVolume(this.pvcName, this.namespace);
await this.kubeClient.deleteNamespacedSecret(this.secretName, this.namespace);
}