From 6f5d9b030ab76775bb430702597b259e6cbc4eaf Mon Sep 17 00:00:00 2001 From: Shubham Pampattiwar Date: Tue, 13 Sep 2022 20:48:27 -0400 Subject: [PATCH] increase restic ensure repo timeout Signed-off-by: Shubham Pampattiwar add changelog Signed-off-by: Shubham Pampattiwar --- changelogs/unreleased/5336-shubham-pampattiwar | 1 + pkg/restic/repository_ensurer.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/5336-shubham-pampattiwar diff --git a/changelogs/unreleased/5336-shubham-pampattiwar b/changelogs/unreleased/5336-shubham-pampattiwar new file mode 100644 index 000000000..803f0f3cb --- /dev/null +++ b/changelogs/unreleased/5336-shubham-pampattiwar @@ -0,0 +1 @@ +Increase ensure restic repository timeout to 5m \ No newline at end of file diff --git a/pkg/restic/repository_ensurer.go b/pkg/restic/repository_ensurer.go index f1f4f168a..c86580402 100644 --- a/pkg/restic/repository_ensurer.go +++ b/pkg/restic/repository_ensurer.go @@ -176,7 +176,7 @@ func (r *repositoryEnsurer) EnsureRepo(ctx context.Context, namespace, volumeNam select { // repositories should become either ready or not ready quickly if they're // newly created. - case <-time.After(time.Minute): + case <-time.After(time.Minute * 5): return nil, errors.New("timed out waiting for restic repository to become ready") case <-ctx.Done(): return nil, errors.New("timed out waiting for restic repository to become ready")