500000 timeout watching pvc
parent
02e6ffc6da
commit
4127ffded3
|
|
@ -1674,7 +1674,7 @@ 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'; }), {
|
||||
timeout: 50000,
|
||||
timeout: 500000,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -1702,7 +1702,7 @@ class KubernetesStorage {
|
|||
};
|
||||
yield kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc);
|
||||
core.info(`Persistent Volume created, ${yield KubernetesStorage.getPVCPhase(kubeClient, pvcName, namespace)}`);
|
||||
// await this.watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, pvcName, namespace);
|
||||
yield this.watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, pvcName, namespace);
|
||||
core.info(JSON.stringify((yield kubeClient.readNamespacedPersistentVolumeClaimStatus(pvcName, namespace)).body, undefined, 4));
|
||||
});
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -8,7 +8,7 @@ class KubernetesStorage {
|
|||
}
|
||||
public static async watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, name, namespace) {
|
||||
await waitUntil(async () => (await this.getPVCPhase(kubeClient, name, namespace)) !== 'Pending', {
|
||||
timeout: 50000,
|
||||
timeout: 500000,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ class KubernetesStorage {
|
|||
};
|
||||
await kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc);
|
||||
core.info(`Persistent Volume created, ${await KubernetesStorage.getPVCPhase(kubeClient, pvcName, namespace)}`);
|
||||
// await this.watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, pvcName, namespace);
|
||||
await this.watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, pvcName, namespace);
|
||||
core.info(
|
||||
JSON.stringify(
|
||||
(await kubeClient.readNamespacedPersistentVolumeClaimStatus(pvcName, namespace)).body,
|
||||
|
|
|
|||
Loading…
Reference in New Issue