Snapshots: Remove deprecated option snapshot_remove_expired (#91231)

This commit is contained in:
Ryan McKinley
2024-07-31 08:47:15 +03:00
committed by GitHub
parent fc1139e51a
commit 68f1a0619d
6 changed files with 4 additions and 30 deletions
-3
View File
@@ -342,8 +342,6 @@ type Cfg struct {
ExternalSnapshotUrl string
ExternalSnapshotName string
ExternalEnabled bool
// Deprecated: setting this to false adds deprecation warnings at runtime
SnapShotRemoveExpired bool
// Only used in https://snapshots.raintank.io/
SnapshotPublicMode bool
@@ -1851,7 +1849,6 @@ func readSnapshotsSettings(cfg *Cfg, iniFile *ini.File) error {
cfg.ExternalSnapshotName = valueAsString(snapshots, "external_snapshot_name", "")
cfg.ExternalEnabled = snapshots.Key("external_enabled").MustBool(true)
cfg.SnapShotRemoveExpired = snapshots.Key("snapshot_remove_expired").MustBool(true)
cfg.SnapshotPublicMode = snapshots.Key("public_mode").MustBool(false)
return nil