Delete PVC not PV

pull/273/head
Frostebite 2021-06-06 05:21:23 +01:00
parent b3dee76d5a
commit 896e754512
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -1069,7 +1069,7 @@ class Kubernetes {
return __awaiter(this, void 0, void 0, function* () {
core.info('cleaning up');
yield this.kubeClientBatch.deleteNamespacedJob(this.jobName, this.namespace);
yield this.kubeClient.deletePersistentVolume(this.pvcName, this.namespace);
yield this.kubeClient.deleteNamespacedPersistentVolumeClaim(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

@ -356,7 +356,7 @@ class Kubernetes {
static async cleanup() {
core.info('cleaning up');
await this.kubeClientBatch.deleteNamespacedJob(this.jobName, this.namespace);
await this.kubeClient.deletePersistentVolume(this.pvcName, this.namespace);
await this.kubeClient.deleteNamespacedPersistentVolumeClaim(this.pvcName, this.namespace);
await this.kubeClient.deleteNamespacedSecret(this.secretName, this.namespace);
}