-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: align pitr backup retention with cluster retentionPeriod #8297
base: main
Are you sure you want to change the base?
fix: align pitr backup retention with cluster retentionPeriod #8297
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8297 +/- ##
==========================================
- Coverage 61.35% 61.12% -0.24%
==========================================
Files 350 350
Lines 41162 41164 +2
==========================================
- Hits 25257 25162 -95
- Misses 13611 13711 +100
+ Partials 2294 2291 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -635,6 +635,9 @@ func (r *backupPolicyBuilder) mergeClusterBackup( | |||
if as.Spec.BackupType == dpv1alpha1.BackupTypeContinuous && backup.PITREnabled != nil && !hasSyncPITRMethod { | |||
// auto-sync the first continuous backup for the 'pirtEnable' option. | |||
backupSchedule.Spec.Schedules[i].Enabled = backup.PITREnabled | |||
if backup.RetentionPeriod.String() != "" { | |||
backupSchedule.Spec.Schedules[i].RetentionPeriod = backup.RetentionPeriod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pitr retention period needs greater than full backup
align pitr backup retention with cluster retentionPeriod in backup schedule