Fix: watch pod until running

pull/273/head
Frostebite 2021-06-19 05:31:04 +01:00
parent 31c6bed1b4
commit d403415bbe
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -1618,7 +1618,7 @@ class Kubernetes {
getPodStatusPhase() {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
return (_b = (_a = (yield this.kubeClient.readNamespacedPod(this.podName, this.namespace))) === null || _a === void 0 ? void 0 : _a.body.status) === null || _b === void 0 ? void 0 : _b.phase;
return (_b = (_a = (yield this.kubeClient.readNamespacedPodStatus(this.podName, this.namespace))) === null || _a === void 0 ? void 0 : _a.body.status) === null || _b === void 0 ? void 0 : _b.phase;
});
}
watchUntilPodRunning() {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -412,7 +412,7 @@ class Kubernetes implements RemoteBuilderProviderInterface {
}
async getPodStatusPhase() {
return (await this.kubeClient.readNamespacedPod(this.podName, this.namespace))?.body.status?.phase;
return (await this.kubeClient.readNamespacedPodStatus(this.podName, this.namespace))?.body.status?.phase;
}
async watchUntilPodRunning() {