[Feature] Extend Retention Period for Delta Snapshots #639
Labels
kind/enhancement
Enhancement, improvement, extension
status/closed
Issue is closed (either delivered or triaged)
Feature (What you would like to be added):
We need to make the retention period for delta snapshots configurable to ensure we can provide enough data for operators to troubleshoot effectively.
Motivation (Why is this needed?):
Currently, delta snapshots are only retained for latest delta snapshots While this might be adequate for some situations, it could prove insufficient for debugging issues or bugs in productive environments where a longer retention period could be necessary.
Approach/Hint to the implement solution (optional):
Implement the
DeltaSnapshotRetentionPeriod
parameter in theSnapshotterConfig
structure to support configurability of the retention period for delta snapshots. This parameter should be adjustable via command-line flags. Modify the garbage collection logic for both Exponential and LimitBased policies to use this retention period, thereby skipping the deletion of delta snapshots within this period. By doing so, both garbage collection policies will support thedelta-snapshot-retention-period
flag, ensuring user-specified retention of delta snapshots.The text was updated successfully, but these errors were encountered: