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")