From 878a4c75aff4542da69c932d92ab2dcae5ef3762 Mon Sep 17 00:00:00 2001 From: Pavan Navarathna <6504783+pavannd1@users.noreply.github.com> Date: Thu, 26 Oct 2023 23:17:28 -0700 Subject: [PATCH] Do not apply kopia retention policy on snap create (#2442) --- pkg/kopia/snapshot/snapshot.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/kopia/snapshot/snapshot.go b/pkg/kopia/snapshot/snapshot.go index d07830c270..c7d6b9b4df 100644 --- a/pkg/kopia/snapshot/snapshot.go +++ b/pkg/kopia/snapshot/snapshot.go @@ -67,10 +67,11 @@ func SnapshotSource( return "", 0, errors.Wrap(err, "Failed to save kopia manifest") } - _, err = policy.ApplyRetentionPolicy(ctx, rep, sourceInfo, true) - if err != nil { - return "", 0, errors.Wrap(err, "Failed to apply kopia retention policy") - } + // TODO: https://github.com/kanisterio/kanister/issues/2441 + // _, err = policy.ApplyRetentionPolicy(ctx, rep, sourceInfo, true) + // if err != nil { + // return "", 0, errors.Wrap(err, "Failed to apply kopia retention policy") + // } if err = policy.SetManual(ctx, rep, sourceInfo); err != nil { return "", 0, errors.Wrap(err, "Failed to set manual field in kopia scheduling policy for source")