Merge pull request #5336 from shubham-pampattiwar/inc-ensure-repo-timeout

[Cherry pick to v1.9.x] Increase restic ensure repo timeout
This commit is contained in:
Xun Jiang/Bruce Jiang
2022-09-14 10:38:04 +08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
@@ -0,0 +1 @@
Increase ensure restic repository timeout to 5m
+1 -1
View File
@@ -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")