Hide the customized default setting by default in Rancher chart

Signed-off-by: Mohamed Eldafrawi <mohamed.eldafrawi@rancher.com>
This commit is contained in:
Mohamed Eldafrawi 2020-05-09 04:03:49 +02:00 committed by Sheng Yang
parent 66f26a9c3d
commit f473ae48f1

View File

@ -100,19 +100,27 @@ questions:
group: "Private Registry Settings" group: "Private Registry Settings"
type: password type: password
default: "" default: ""
- variable: defaultSettings.registrySecret - variable: longhorn.default_setting
default: "false"
description: "Customize the default settings before installing Longhorn for the first time. This option will only work if the cluster hasn't installed Longhorn."
label: "Customize Default Setting"
type: boolean
show_subquestion_if: true
group: "Longhorn Default Settings"
subquestions:
- variable: defaultSettings.registrySecret
label: Private registry secret label: Private registry secret
description: "The Kubernetes Secret name" description: "The Kubernetes Secret name"
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
type: string type: string
default: "" default: ""
- variable: csi.kubeletRootDir - variable: csi.kubeletRootDir
default: default:
description: "Specify kubelet root-dir. Leave blank to autodetect." description: "Specify kubelet root-dir. Leave blank to autodetect."
type: string type: string
label: Kubelet Root Directory label: Kubelet Root Directory
group: "Longhorn CSI Driver Settings" group: "Longhorn CSI Driver Settings"
- variable: csi.attacherReplicaCount - variable: csi.attacherReplicaCount
type: int type: int
default: default:
min: 1 min: 1
@ -120,7 +128,7 @@ questions:
description: "Specify replica count of CSI Attacher. By default 3." description: "Specify replica count of CSI Attacher. By default 3."
label: Longhorn CSI Attacher replica count label: Longhorn CSI Attacher replica count
group: "Longhorn CSI Driver Settings" group: "Longhorn CSI Driver Settings"
- variable: csi.provisionerReplicaCount - variable: csi.provisionerReplicaCount
type: int type: int
default: default:
min: 1 min: 1
@ -128,14 +136,14 @@ questions:
description: "Specify replica count of CSI Provisioner. By default 3." description: "Specify replica count of CSI Provisioner. By default 3."
label: Longhorn CSI Provisioner replica count label: Longhorn CSI Provisioner replica count
group: "Longhorn CSI Driver Settings" group: "Longhorn CSI Driver Settings"
- variable: persistence.defaultClass - variable: persistence.defaultClass
default: "true" default: "true"
description: "Set as default StorageClass" description: "Set as default StorageClass"
group: "Longhorn CSI Driver Settings" group: "Longhorn CSI Driver Settings"
type: boolean type: boolean
required: true required: true
label: Default Storage Class label: Default Storage Class
- variable: persistence.defaultClassReplicaCount - variable: persistence.defaultClassReplicaCount
description: "Set replica count for default StorageClass" description: "Set replica count for default StorageClass"
group: "Longhorn CSI Driver Settings" group: "Longhorn CSI Driver Settings"
type: int type: int
@ -143,44 +151,44 @@ questions:
min: 1 min: 1
max: 10 max: 10
label: Default Storage Class Replica Count label: Default Storage Class Replica Count
- variable: defaultSettings.backupTarget - variable: defaultSettings.backupTarget
label: Backup Target label: Backup Target
description: "The target used for backup. Support NFS or S3." description: "The target used for backup. Support NFS or S3."
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
type: string type: string
default: default:
- variable: defaultSettings.backupTargetCredentialSecret - variable: defaultSettings.backupTargetCredentialSecret
label: Backup Target Credential Secret label: Backup Target Credential Secret
description: "The Kubernetes secret associated with the backup target." description: "The Kubernetes secret associated with the backup target."
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
type: string type: string
default: default:
- variable: defaultSettings.createDefaultDiskLabeledNodes - variable: defaultSettings.createDefaultDiskLabeledNodes
label: Create Default Disk on Labeled Nodes label: Create Default Disk on Labeled Nodes
description: 'Create default Disk automatically only on Nodes with the label "node.longhorn.io/create-default-disk=true" if no other Disks exist. If disabled, default Disk will be created on all new Nodes (only on first add). By default false.' description: 'Create default Disk automatically only on Nodes with the label "node.longhorn.io/create-default-disk=true" if no other Disks exist. If disabled, default Disk will be created on all new Nodes (only on first add). By default false.'
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
type: boolean type: boolean
default: "false" default: "false"
- variable: defaultSettings.defaultDataPath - variable: defaultSettings.defaultDataPath
label: Default Data Path label: Default Data Path
description: 'Default path to use for storing data on a host. By default "/var/lib/longhorn/"' description: 'Default path to use for storing data on a host. By default "/var/lib/longhorn/"'
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
type: string type: string
default: "/var/lib/longhorn/" default: "/var/lib/longhorn/"
- variable: defaultSettings.replicaSoftAntiAffinity - variable: defaultSettings.replicaSoftAntiAffinity
label: Replica Soft Anti-Affinity label: Replica Soft Anti-Affinity
description: 'Allow scheduling on nodes with existing healthy replicas of the same volume. By default true.' description: 'Allow scheduling on nodes with existing healthy replicas of the same volume. By default true.'
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
type: boolean type: boolean
default: "true" default: "true"
- variable: defaultSettings.storageOverProvisioningPercentage - variable: defaultSettings.storageOverProvisioningPercentage
label: Storage Over Provisioning Percentage label: Storage Over Provisioning Percentage
description: "The over-provisioning percentage defines how much storage can be allocated relative to the hard drive's capacity. By default 200." description: "The over-provisioning percentage defines how much storage can be allocated relative to the hard drive's capacity. By default 200."
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
type: int type: int
min: 0 min: 0
default: 200 default: 200
- variable: defaultSettings.storageMinimalAvailablePercentage - variable: defaultSettings.storageMinimalAvailablePercentage
label: Storage Minimal Available Percentage label: Storage Minimal Available Percentage
description: "If one disk's available capacity to it's maximum capacity in % is less than the minimal available percentage, the disk would become unschedulable until more space freed up. By default 25." description: "If one disk's available capacity to it's maximum capacity in % is less than the minimal available percentage, the disk would become unschedulable until more space freed up. By default 25."
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
@ -188,13 +196,13 @@ questions:
min: 0 min: 0
max: 100 max: 100
default: 25 default: 25
- variable: defaultSettings.upgradeChecker - variable: defaultSettings.upgradeChecker
label: Enable Upgrade Checker label: Enable Upgrade Checker
description: 'Upgrade Checker will check for new Longhorn version periodically. When there is a new version available, it will notify the user using UI. By default true.' description: 'Upgrade Checker will check for new Longhorn version periodically. When there is a new version available, it will notify the user using UI. By default true.'
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
type: boolean type: boolean
default: "true" default: "true"
- variable: defaultSettings.defaultReplicaCount - variable: defaultSettings.defaultReplicaCount
label: Default Replica Count label: Default Replica Count
description: "The default number of replicas when creating the volume from Longhorn UI. For Kubernetes, update the `numberOfReplicas` in the StorageClass. By default 3." description: "The default number of replicas when creating the volume from Longhorn UI. For Kubernetes, update the `numberOfReplicas` in the StorageClass. By default 3."
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
@ -202,26 +210,26 @@ questions:
min: 1 min: 1
max: 20 max: 20
default: 3 default: 3
- variable: defaultSettings.guaranteedEngineCPU - variable: defaultSettings.guaranteedEngineCPU
label: Guaranteed Engine CPU label: Guaranteed Engine CPU
description: '(EXPERIMENTAL FEATURE) Allow Longhorn Engine to have guaranteed CPU allocation. The value is how many CPUs should be reserved for each Engine/Replica Manager Pod created by Longhorn. For example, 0.1 means one-tenth of a CPU. This will help maintain engine stability during high node workload. It only applies to the Engine/Replica Manager Pods created after the setting took effect. WARNING: Attaching of the volume may fail or stuck while using this feature due to the resource constraint. Disabled ("0") by default.' description: '(EXPERIMENTAL FEATURE) Allow Longhorn Engine to have guaranteed CPU allocation. The value is how many CPUs should be reserved for each Engine/Replica Manager Pod created by Longhorn. For example, 0.1 means one-tenth of a CPU. This will help maintain engine stability during high node workload. It only applies to the Engine/Replica Manager Pods created after the setting took effect. WARNING: Attaching of the volume may fail or stuck while using this feature due to the resource constraint. Disabled ("0") by default.'
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
type: float type: float
default: 0 default: 0
- variable: defaultSettings.defaultLonghornStaticStorageClass - variable: defaultSettings.defaultLonghornStaticStorageClass
label: Default Longhorn Static StorageClass Name label: Default Longhorn Static StorageClass Name
description: "The 'storageClassName' is for PV/PVC when creating PV/PVC for an existing Longhorn volume. Notice that it's unnecessary for users create the related StorageClass object in Kubernetes since the StorageClass would only be used as matching labels for PVC bounding purpose. By default 'longhorn-static'." description: "The 'storageClassName' is for PV/PVC when creating PV/PVC for an existing Longhorn volume. Notice that it's unnecessary for users create the related StorageClass object in Kubernetes since the StorageClass would only be used as matching labels for PVC bounding purpose. By default 'longhorn-static'."
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
type: string type: string
default: "longhorn-static" default: "longhorn-static"
- variable: defaultSettings.backupstorePollInterval - variable: defaultSettings.backupstorePollInterval
label: Backupstore Poll Interval label: Backupstore Poll Interval
description: "In seconds. The interval to poll the backup store for updating volumes' Last Backup field. By default 300." description: "In seconds. The interval to poll the backup store for updating volumes' Last Backup field. By default 300."
group: "Longhorn Default Settings" group: "Longhorn Default Settings"
type: int type: int
min: 0 min: 0
default: 300 default: 300
- variable: defaultSettings.taintToleration - variable: defaultSettings.taintToleration
label: Kubernetes Taint Toleration label: Kubernetes Taint Toleration
description: "By setting tolerations for Longhorn then adding taints for the nodes, the nodes with large storage can be dedicated to Longhorn only (to store replica data) and reject other general workloads. Multiple tolerations can be set here, and these tolerations are separated by semicolon. For example, \"key1=value1:NoSchedule; key2:NoExecute\". Notice that \"kubernetes.io\" is used as the key of all Kubernetes default tolerations, please do not contain this substring in your toleration setting." description: "By setting tolerations for Longhorn then adding taints for the nodes, the nodes with large storage can be dedicated to Longhorn only (to store replica data) and reject other general workloads. Multiple tolerations can be set here, and these tolerations are separated by semicolon. For example, \"key1=value1:NoSchedule; key2:NoExecute\". Notice that \"kubernetes.io\" is used as the key of all Kubernetes default tolerations, please do not contain this substring in your toleration setting."
group: "Longhorn Default Settings" group: "Longhorn Default Settings"