Skip to content

Commit

Permalink
feat(chart): add encrypted and extraParameters to storageclass op…
Browse files Browse the repository at this point in the history
…tions

Signed-off-by: Fernando Llaca <ferllarom@gmail.com>
  • Loading branch information
fllaca committed Aug 10, 2024
1 parent ae5cabe commit 4e165dd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ The `values.yaml` contains items used to tweak a deployment of this chart.
| persistence.defaultNodeSelector.enable | bool | `false` | Setting that allows you to enable the node selector for the default Longhorn StorageClass. |
| persistence.defaultNodeSelector.selector | string | `""` | Node selector for the default Longhorn StorageClass. Longhorn uses only nodes with the specified tags for storing volume data. (Examples: "storage,fast") |
| persistence.disableRevisionCounter | string | `"true"` | Setting that disables the revision counter and thereby prevents Longhorn from tracking all write operations to a volume. When salvaging a volume, Longhorn uses properties of the volume-head-xxx.img file (the last file size and the last time the file was modified) to select the replica to be used for volume recovery. |
| persistence.encrypted | string | `""` | Setting that enables encryption for the default Longhorn StorageClass. (Options: "true", "false") |
| persistence.extraParameters | object | `{}` | Setting that allows you to specify extra parameters for the default Longhorn StorageClass. It must be a map of string to string. (Example: `{"encrypted": "true" }`) |
| persistence.migratable | bool | `false` | Setting that allows you to enable live migration of a Longhorn volume from one node to another. |
| persistence.nfsOptions | string | `""` | Set NFS mount options for Longhorn StorageClass for RWX volumes |
| persistence.reclaimPolicy | string | `"Delete"` | Reclaim policy that provides instructions for handling of a volume after its claim is released. (Options: "Retain", "Delete") |
Expand Down
6 changes: 6 additions & 0 deletions chart/templates/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ data:
{{- if .Values.persistence.disableRevisionCounter }}
disableRevisionCounter: "{{ .Values.persistence.disableRevisionCounter }}"
{{- end }}
{{- if .Values.persistence.encrypted }}
encrypted: {{ .Values.persistence.encrypted | quote }}
{{- end }}
{{- if .Values.persistence.extraParameters }}
{{ .Values.persistence.extraParameters | toYaml | nindent 6 }}
{{- end }}
6 changes: 6 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ persistence:
selector: ""
# -- Setting that allows you to enable automatic snapshot removal during filesystem trim for a Longhorn StorageClass. (Options: "ignored", "enabled", "disabled")
removeSnapshotsDuringFilesystemTrim: ignored
# -- Setting that enables encryption for the default Longhorn StorageClass. (Options: "true", "false")
encrypted: ""
# -- Setting that allows you to specify extra parameters for the default Longhorn StorageClass.
# It must be a map of string to string. (Example: `{"encrypted": "true" }`)
extraParameters: {}


preUpgradeChecker:
# -- Setting that allows Longhorn to perform pre-upgrade checks. Disable this setting when installing Longhorn using Argo CD or other GitOps solutions.
Expand Down

0 comments on commit 4e165dd

Please sign in to comment.