diff --git a/chart/questions.yaml b/chart/questions.yaml index 37344c5..e8fbc3a 100644 --- a/chart/questions.yaml +++ b/chart/questions.yaml @@ -432,6 +432,18 @@ If disabled, Longhorn will not delete the workload pod that is managed by a cont group: "Longhorn Default Settings" type: boolean default: "true" + - variable: defaultSettings.allowEmptyNodeSelectorVolume + label: Allow Empty Node Selector Volume + description: "Allow Scheduling Empty Node Selector Volumes To Any Node" + group: "Longhorn Default Settings" + type: boolean + default: "true" + - variable: defaultSettings.allowEmptyDiskSelectorVolume + label: Allow Empty Disk Selector Volume + description: "Allow Scheduling Empty Disk Selector Volumes To Any Disk" + group: "Longhorn Default Settings" + type: boolean + default: "true" - variable: defaultSettings.nodeDownPodDeletionPolicy label: Pod Deletion Policy When Node is Down description: "Defines the Longhorn action when a Volume is stuck with a StatefulSet/Deployment Pod on a node that is down. diff --git a/chart/templates/default-setting.yaml b/chart/templates/default-setting.yaml index ac38ba9..59a1c19 100644 --- a/chart/templates/default-setting.yaml +++ b/chart/templates/default-setting.yaml @@ -81,3 +81,5 @@ data: {{ if not (kindIs "invalid" .Values.defaultSettings.restoreConcurrentLimit) }}restore-concurrent-limit: {{ .Values.defaultSettings.restoreConcurrentLimit }}{{ end }} {{ if not (kindIs "invalid" .Values.defaultSettings.v2DataEngine) }}v2-data-engine: {{ .Values.defaultSettings.v2DataEngine }}{{ end }} {{ if not (kindIs "invalid" .Values.defaultSettings.offlineReplicaRebuilding) }}offline-replica-rebuilding: {{ .Values.defaultSettings.offlineReplicaRebuilding }}{{ end }} + {{ if not (kindIs "invalid" .Values.defaultSettings.allowEmptyNodeSelectorVolume) }}allow-empty-node-selector-volume: {{ .Values.defaultSettings.allowEmptyNodeSelectorVolume }}{{ end }} + {{ if not (kindIs "invalid" .Values.defaultSettings.allowEmptyDiskSelectorVolume) }}allow-empty-disk-selector-volume: {{ .Values.defaultSettings.allowEmptyDiskSelectorVolume }}{{ end }} diff --git a/chart/values.yaml b/chart/values.yaml index 3a69dc4..303af68 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -167,6 +167,8 @@ defaultSettings: restoreConcurrentLimit: ~ v2DataEngine: ~ offlineReplicaRebuilding: ~ + allowEmptyNodeSelectorVolume: ~ + allowEmptyDiskSelectorVolume: ~ privateRegistry: createSecret: ~ registryUrl: ~