50000 timeout watching pvc
parent
82f86eebc5
commit
30820561e7
|
|
@ -1673,7 +1673,9 @@ class KubernetesStorage {
|
||||||
}
|
}
|
||||||
static watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, name, namespace) {
|
static watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, name, namespace) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
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) {
|
static createPersistentVolumeClaim(buildParameters, pvcName, kubeClient, namespace) {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -7,7 +7,9 @@ class KubernetesStorage {
|
||||||
return (await kubeClient.readNamespacedPersistentVolumeClaimStatus(name, namespace)).body.status?.phase;
|
return (await kubeClient.readNamespacedPersistentVolumeClaimStatus(name, namespace)).body.status?.phase;
|
||||||
}
|
}
|
||||||
public static async watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, name, namespace) {
|
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) {
|
public static async createPersistentVolumeClaim(buildParameters, pvcName, kubeClient, namespace) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue