Fix: longer k8s polling intervals

pull/273/head
Frostebite 2021-06-18 23:23:30 +01:00
parent 70e4968320
commit d01688d55f
4 changed files with 7 additions and 3 deletions

4
dist/index.js vendored
View File

@ -1660,8 +1660,9 @@ class Kubernetes {
yield this.kubeClient.deleteNamespacedSecret(this.secretName, this.namespace);
}
catch (error) {
core.info('Failed to cleanup');
core.info('Failed to cleanup, error:');
core.error(JSON.stringify(error, undefined, 4));
core.info('Abandoning cleanup, build error:');
}
});
}
@ -1729,6 +1730,7 @@ class KubernetesStorage {
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: 500000,
intervalBetweenAttempts: 15000,
});
});
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -442,8 +442,9 @@ class Kubernetes implements RemoteBuilderProviderInterface {
await this.kubeClient.deleteNamespacedPersistentVolumeClaim(this.pvcName, this.namespace);
await this.kubeClient.deleteNamespacedSecret(this.secretName, this.namespace);
} catch (error) {
core.info('Failed to cleanup');
core.info('Failed to cleanup, error:');
core.error(JSON.stringify(error, undefined, 4));
core.info('Abandoning cleanup, build error:');
}
}

View File

@ -14,6 +14,7 @@ class KubernetesStorage {
) {
await waitUntil(async () => (await this.getPVCPhase(kubeClient, name, namespace)) !== 'Pending', {
timeout: 500000,
intervalBetweenAttempts: 15000,
});
}