diff --git a/chart/README.md b/chart/README.md index 61af7f8d16..0b65833bf0 100644 --- a/chart/README.md +++ b/chart/README.md @@ -286,6 +286,7 @@ For more details like types or options, you can refer to **Settings Reference** | defaultSettings.deletingConfirmationFlag | This flag is designed to prevent Longhorn from being accidentally uninstalled which will lead to data lost. | | defaultSettings.disableRevisionCounter | This setting is only for volumes created by UI. By default, this is false meaning there will be a reivision counter file to track every write to the volume. During salvage recovering Longhorn will pick the replica with largest reivision counter as candidate to recover the whole volume. If revision counter is disabled, Longhorn will not track every write to the volume. During the salvage recovering, Longhorn will use the 'volume-head-xxx.img' file last modification time and file size to pick the replica candidate to recover the whole volume. | | defaultSettings.disableSchedulingOnCordonedNode | Disable Longhorn manager to schedule replica on Kubernetes cordoned node. By default true. | +| defaultSettings.disableSnapshotPurge | Temporarily prevent all attempts to purge volume snapshots. | | defaultSettings.engineReplicaTimeout | In seconds. The setting specifies the timeout between the engine and replica(s), and the value should be between 8 to 30 seconds. The default value is 8 seconds. | | defaultSettings.failedBackupTTL | In minutes. This setting determines how long Longhorn will keep the backup resource that was failed. Set to 0 to disable the auto-deletion. | | defaultSettings.fastReplicaRebuildEnabled | This feature supports the fast replica rebuilding. It relies on the checksum of snapshot disk files, so setting the snapshot-data-integrity to **enable** or **fast-check** is a prerequisite. | diff --git a/chart/questions.yaml b/chart/questions.yaml index ff26afff96..680c8d436d 100644 --- a/chart/questions.yaml +++ b/chart/questions.yaml @@ -530,6 +530,12 @@ questions: group: "Longhorn Default Settings" type: string default: "Info" + - variable: defaultSettings.disableSnapshotPurge + label: Disable Snapshot Purge + description: "Temporarily prevent all attempts to purge volume snapshots." + group: "Longhorn Default Settings" + type: boolean + default: "false" - variable: defaultSettings.kubernetesClusterAutoscalerEnabled label: Kubernetes Cluster Autoscaler Enabled (Experimental) description: "Enabling this setting will notify Longhorn that the cluster is using Kubernetes Cluster Autoscaler." diff --git a/chart/values.yaml b/chart/values.yaml index 12548d3de6..1446f27200 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -327,6 +327,8 @@ defaultSettings: allowEmptyNodeSelectorVolume: ~ # -- Allow Scheduling Empty Disk Selector Volumes To Any Disk allowEmptyDiskSelectorVolume: ~ + # -- Temporarily prevent all attempts to purge volume snapshots. + disableSnapshotPurge: ~ privateRegistry: # -- Set `true` to create a new private registry secret