From f62825285776612a7e33199ce3cd495c54f3b674 Mon Sep 17 00:00:00 2001 From: Shubham Pampattiwar Date: Tue, 13 Sep 2022 16:42:51 -0400 Subject: [PATCH] increase ensure restic repository timeout Signed-off-by: Shubham Pampattiwar update changelog Signed-off-by: Shubham Pampattiwar update changelog file name 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 0000000000..803f0f3cb5 --- /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 5527ac7422..7d7bd3ffbc 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 {