Fix: longer k8s polling intervals
parent
70e4968320
commit
d01688d55f
|
|
@ -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,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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:');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ class KubernetesStorage {
|
|||
) {
|
||||
await waitUntil(async () => (await this.getPVCPhase(kubeClient, name, namespace)) !== 'Pending', {
|
||||
timeout: 500000,
|
||||
intervalBetweenAttempts: 15000,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue