From 23e4bcd13fa9bf85dc11390c4a63aa5995157d86 Mon Sep 17 00:00:00 2001 From: Eric Weber Date: Mon, 4 Dec 2023 14:20:13 -0600 Subject: [PATCH] Add disableSnapshotPurge Helm variable Longhorn 7075 Signed-off-by: Eric Weber --- chart/README.md | 1 + chart/questions.yaml | 6 ++++++ chart/values.yaml | 2 ++ 3 files changed, 9 insertions(+) diff --git a/chart/README.md b/chart/README.md index 4c58a221a3..2f64863bab 100644 --- a/chart/README.md +++ b/chart/README.md @@ -288,6 +288,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 9cda048c11..087710a07d 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 20eecfe977..d2ebc51ad5 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -329,6 +329,8 @@ defaultSettings: allowEmptyDiskSelectorVolume: ~ # -- Enabling this setting will allow Longhorn to provide additional usage metrics to https://metrics.longhorn.io/. This information will help us better understand how Longhorn is being used, which will ultimately contribute to future improvements. allowCollectingLonghornUsageMetrics: ~ + # -- Temporarily prevent all attempts to purge volume snapshots. + disableSnapshotPurge: ~ privateRegistry: # -- Set `true` to create a new private registry secret