50000 timeout watching pvc

pull/273/head
Frostebite 2021-06-18 20:59:45 +01:00
parent 82f86eebc5
commit 30820561e7
3 changed files with 7 additions and 3 deletions

4
dist/index.js vendored
View File

@ -1673,7 +1673,9 @@ class KubernetesStorage {
}
static watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, name, namespace) {
return __awaiter(this, void 0, void 0, function* () {
yield async_wait_until_1.default(() => __awaiter(this, void 0, void 0, function* () { return (yield this.getPVCPhase(kubeClient, name, namespace)) !== 'Pending'; }));
yield async_wait_until_1.default(() => __awaiter(this, void 0, void 0, function* () { return (yield this.getPVCPhase(kubeClient, name, namespace)) !== 'Pending'; }), {
timeout: 50000,
});
});
}
static createPersistentVolumeClaim(buildParameters, pvcName, kubeClient, namespace) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,9 @@ class KubernetesStorage {
return (await kubeClient.readNamespacedPersistentVolumeClaimStatus(name, namespace)).body.status?.phase;
}
public static async watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, name, namespace) {
await waitUntil(async () => (await this.getPVCPhase(kubeClient, name, namespace)) !== 'Pending');
await waitUntil(async () => (await this.getPVCPhase(kubeClient, name, namespace)) !== 'Pending', {
timeout: 50000,
});
}
public static async createPersistentVolumeClaim(buildParameters, pvcName, kubeClient, namespace) {