Fix: watch pod until running
parent
31c6bed1b4
commit
d403415bbe
|
|
@ -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() {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue