k8s wait for pending because pvc will not create earlier

pull/353/head
Frostebite 2022-04-06 20:10:10 +01:00
parent 3c0cc5667a
commit 7bc9028ee5
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -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(`${yield this.getPVCPhase(kubeClient, name, namespace)}`);
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,
intervalBetweenAttempts: 15000,

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -50,7 +50,7 @@ class KubernetesStorage {
CloudRunnerLogger.log(`${await this.getPVCPhase(kubeClient, name, namespace)}`);
await waitUntil(
async () => {
return (await this.getPVCPhase(kubeClient, name, namespace)) !== 'Pending';
return (await this.getPVCPhase(kubeClient, name, namespace)) === 'Pending';
},
{
timeout: 750000,