mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-05-02 05:15:45 +00:00
increase restic ensure repo timeout
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com> add changelog Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
This commit is contained in:
1
changelogs/unreleased/5336-shubham-pampattiwar
Normal file
1
changelogs/unreleased/5336-shubham-pampattiwar
Normal file
@@ -0,0 +1 @@
|
||||
Increase ensure restic repository timeout to 5m
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user