k8s wait for pending because pvc will not create earlier
parent
3c0cc5667a
commit
7bc9028ee5
|
|
@ -2513,7 +2513,7 @@ class KubernetesStorage {
|
||||||
cloud_runner_logger_1.default.log(`watch Until PVC Not Pending ${name} ${namespace}`);
|
cloud_runner_logger_1.default.log(`watch Until PVC Not Pending ${name} ${namespace}`);
|
||||||
cloud_runner_logger_1.default.log(`${yield this.getPVCPhase(kubeClient, name, namespace)}`);
|
cloud_runner_logger_1.default.log(`${yield this.getPVCPhase(kubeClient, name, namespace)}`);
|
||||||
yield async_wait_until_1.default(() => __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';
|
return (yield this.getPVCPhase(kubeClient, name, namespace)) === 'Pending';
|
||||||
}), {
|
}), {
|
||||||
timeout: 750000,
|
timeout: 750000,
|
||||||
intervalBetweenAttempts: 15000,
|
intervalBetweenAttempts: 15000,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -50,7 +50,7 @@ class KubernetesStorage {
|
||||||
CloudRunnerLogger.log(`${await this.getPVCPhase(kubeClient, name, namespace)}`);
|
CloudRunnerLogger.log(`${await this.getPVCPhase(kubeClient, name, namespace)}`);
|
||||||
await waitUntil(
|
await waitUntil(
|
||||||
async () => {
|
async () => {
|
||||||
return (await this.getPVCPhase(kubeClient, name, namespace)) !== 'Pending';
|
return (await this.getPVCPhase(kubeClient, name, namespace)) === 'Pending';
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
timeout: 750000,
|
timeout: 750000,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue