From fb2722ffe5cef3a551e260d56e172b97d7aa30fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wenkai=20Yin=28=E5=B0=B9=E6=96=87=E5=BC=80=29?= Date: Wed, 12 Jan 2022 14:09:48 +0800 Subject: [PATCH] Fix bug to make the restic prune frequency configurable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(尹文开) --- changelogs/unreleased/4518-ywk253100 | 1 + pkg/restic/repository_ensurer.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 changelogs/unreleased/4518-ywk253100 diff --git a/changelogs/unreleased/4518-ywk253100 b/changelogs/unreleased/4518-ywk253100 new file mode 100644 index 000000000..e1b918174 --- /dev/null +++ b/changelogs/unreleased/4518-ywk253100 @@ -0,0 +1 @@ +Fix bug to make the restic prune frequency configurable \ No newline at end of file diff --git a/pkg/restic/repository_ensurer.go b/pkg/restic/repository_ensurer.go index d80dcb6eb..f1f4f168a 100644 --- a/pkg/restic/repository_ensurer.go +++ b/pkg/restic/repository_ensurer.go @@ -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}, }, }