Logging improvements: log pvc status phase
parent
06efbd07c4
commit
57e6869829
|
|
@ -835,6 +835,7 @@ class Kubernetes {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
createPersistentVolumeClaim() {
|
createPersistentVolumeClaim() {
|
||||||
|
var _a;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (this.buildParameters.kubeVolume) {
|
if (this.buildParameters.kubeVolume) {
|
||||||
core.info(this.buildParameters.kubeVolume);
|
core.info(this.buildParameters.kubeVolume);
|
||||||
|
|
@ -856,8 +857,8 @@ class Kubernetes {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
yield this.kubeClient.createNamespacedPersistentVolumeClaim(this.namespace, pvc);
|
const pvcResult = yield this.kubeClient.createNamespacedPersistentVolumeClaim(this.namespace, pvc);
|
||||||
core.info('Persistent Volume created, waiting for ready state...');
|
core.info(`Persistent Volume created, ${(_a = pvcResult.body.status) === null || _a === void 0 ? void 0 : _a.phase}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
getJobSpec(command, image) {
|
getJobSpec(command, image) {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -140,8 +140,8 @@ class Kubernetes implements RemoteBuilderProviderInterface {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
await this.kubeClient.createNamespacedPersistentVolumeClaim(this.namespace, pvc);
|
const pvcResult = await this.kubeClient.createNamespacedPersistentVolumeClaim(this.namespace, pvc);
|
||||||
core.info('Persistent Volume created, waiting for ready state...');
|
core.info(`Persistent Volume created, ${pvcResult.body.status?.phase}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
getJobSpec(command: string[], image: string) {
|
getJobSpec(command: string[], image: string) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue