From c5339227fe73c0dabcd610cb209b2203102b6d41 Mon Sep 17 00:00:00 2001 From: Shubham Pampattiwar Date: Wed, 19 Oct 2022 04:26:45 -0400 Subject: [PATCH] increase ensure restic repository timeout (#5335) Signed-off-by: Shubham Pampattiwar --- changelogs/unreleased/5335-shubham-pampattiwar | 1 + pkg/repository/ensurer.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/5335-shubham-pampattiwar diff --git a/changelogs/unreleased/5335-shubham-pampattiwar b/changelogs/unreleased/5335-shubham-pampattiwar new file mode 100644 index 000000000..803f0f3cb --- /dev/null +++ b/changelogs/unreleased/5335-shubham-pampattiwar @@ -0,0 +1 @@ +Increase ensure restic repository timeout to 5m \ No newline at end of file diff --git a/pkg/repository/ensurer.go b/pkg/repository/ensurer.go index 5527ac742..7d7bd3ffb 100644 --- a/pkg/repository/ensurer.go +++ b/pkg/repository/ensurer.go @@ -124,7 +124,7 @@ func (r *RepositoryEnsurer) createBackupRepositoryAndWait(ctx context.Context, n } } - err := wait.PollWithContext(ctx, time.Millisecond*500, time.Minute, checkFunc) + err := wait.PollWithContext(ctx, time.Millisecond*500, time.Minute*5, checkFunc) if err != nil { return nil, errors.Wrap(err, "failed to wait BackupRepository") } else {