Skip to content

Commit

Permalink
Add ReplicaAutoBalance param for StorageClass
Browse files Browse the repository at this point in the history
Signed-off-by: Tomáš Novák <tomas.novak@bcas.cz>
  • Loading branch information
MioOgbeni authored and innobead committed Mar 9, 2023
1 parent 719bed5 commit 728dfbc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions charts/longhorn/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,17 @@ Set the value to **0** to disable backup restore."
- "disabled"
- "best-effort"
default: "disabled"
- variable: persistence.defaultReplicaAutoBalance
description: "Set replica auto balance for Longhorn StorageClass"
label: Default Storage Class Replica Auto Balance
group: "Longhorn Storage Class Settings"
type: enum
options:
- "ignored"
- "disabled"
- "least-effort"
- "best-effort"
default: "ignored"
- variable: persistence.recurringJobSelector.enable
description: "Enable recurring job selector for Longhorn StorageClass"
group: "Longhorn Storage Class Settings"
Expand Down
1 change: 1 addition & 0 deletions charts/longhorn/templates/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ data:
recurringJobSelector: '{{ .Values.persistence.recurringJobSelector.jobList }}'
{{- end }}
dataLocality: {{ .Values.persistence.defaultDataLocality | quote }}
replicaAutoBalance: {{ .Values.persistence.defaultReplicaAutoBalance | quote }}
{{- if .Values.persistence.defaultNodeSelector.enable }}
nodeSelector: "{{ .Values.persistence.defaultNodeSelector.selector }}"
{{- end }}
1 change: 1 addition & 0 deletions charts/longhorn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ persistence:
defaultMkfsParams: ""
defaultClassReplicaCount: 3
defaultDataLocality: disabled # best-effort otherwise
defaultReplicaAutoBalance: ignored # "disabled", "least-effort" or "best-effort" otherwise
reclaimPolicy: Delete
migratable: false
recurringJobSelector:
Expand Down

0 comments on commit 728dfbc

Please sign in to comment.