Skip to content

Commit

Permalink
avoid unnecessary repo connect for maintenance
Browse files Browse the repository at this point in the history
Signed-off-by: Lyndon-Li <[email protected]>
  • Loading branch information
Lyndon-Li committed May 30, 2024
1 parent 33633d8 commit 2d0bca5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/repository/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,6 @@ func (m *manager) PruneRepo(repo *velerov1api.BackupRepository) error {
m.repoLocker.LockExclusive(repo.Name)
defer m.repoLocker.UnlockExclusive(repo.Name)

prd, err := m.getRepositoryProvider(repo)
if err != nil {
return errors.WithStack(err)
}
param, err := m.assembleRepoParam(repo)
if err != nil {
return errors.WithStack(err)
Expand All @@ -208,10 +204,6 @@ func (m *manager) PruneRepo(repo *velerov1api.BackupRepository) error {
return nil
}

if err := prd.BoostRepoConnect(context.Background(), param); err != nil {
return errors.WithStack(err)
}

log.Info("Start to maintenance repo")

maintenanceJob, err := buildMaintenanceJob(m.maintenanceCfg, param, m.client, m.namespace)
Expand Down

0 comments on commit 2d0bca5

Please sign in to comment.