Fix bug to make the restic prune frequency configurable

We introduces the installation option "--default-restic-prune-frequency" to make restic prune frequency configuration in the previous release, but there is a bug that make the option don't take effect. This commit fixes the bug by removing the evaluation part. The restic repository controller will take care the prune frequency for the repository

Fixes #3062

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This commit is contained in:
Wenkai Yin(尹文开)
2022-01-12 14:09:48 +08:00
parent a91483c55c
commit fb2722ffe5
2 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1 @@
Fix bug to make the restic prune frequency configurable

View File

@@ -160,7 +160,6 @@ func (r *repositoryEnsurer) EnsureRepo(ctx context.Context, namespace, volumeNam
Spec: velerov1api.ResticRepositorySpec{
VolumeNamespace: volumeNamespace,
BackupStorageLocation: backupLocation,
MaintenanceFrequency: metav1.Duration{Duration: DefaultMaintenanceFrequency},
},
}