Skip to content

Commit

Permalink
Add disableSnapshotPurge Helm variable
Browse files Browse the repository at this point in the history
Longhorn 7075

Signed-off-by: Eric Weber <eric.weber@suse.com>
  • Loading branch information
ejweber committed Dec 4, 2023
1 parent 2704917 commit 23e4bcd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
6 changes: 6 additions & 0 deletions chart/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23e4bcd

Please sign in to comment.