Logging improvements: log pvc status phase

pull/273/head
Frostebite 2021-06-18 20:08:03 +01:00
parent 06efbd07c4
commit 57e6869829
3 changed files with 6 additions and 5 deletions

5
dist/index.js vendored
View File

@ -835,6 +835,7 @@ class Kubernetes {
});
}
createPersistentVolumeClaim() {
var _a;
return __awaiter(this, void 0, void 0, function* () {
if (this.buildParameters.kubeVolume) {
core.info(this.buildParameters.kubeVolume);
@ -856,8 +857,8 @@ class Kubernetes {
},
},
};
yield this.kubeClient.createNamespacedPersistentVolumeClaim(this.namespace, pvc);
core.info('Persistent Volume created, waiting for ready state...');
const pvcResult = yield this.kubeClient.createNamespacedPersistentVolumeClaim(this.namespace, pvc);
core.info(`Persistent Volume created, ${(_a = pvcResult.body.status) === null || _a === void 0 ? void 0 : _a.phase}`);
});
}
getJobSpec(command, image) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -140,8 +140,8 @@ class Kubernetes implements RemoteBuilderProviderInterface {
},
},
};
await this.kubeClient.createNamespacedPersistentVolumeClaim(this.namespace, pvc);
core.info('Persistent Volume created, waiting for ready state...');
const pvcResult = await this.kubeClient.createNamespacedPersistentVolumeClaim(this.namespace, pvc);
core.info(`Persistent Volume created, ${pvcResult.body.status?.phase}`);
}
getJobSpec(command: string[], image: string) {