chart: arg kubelet root-dir became configurable

This commit is contained in:
Shuo Wu 2019-05-08 10:25:09 -07:00 committed by Sheng Yang
parent cac53ad3ba
commit 4195f1c0f4
3 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,11 @@ questions:
description: "Specify CSI Driver Registrar image. Leave blank to autodetect."
type: string
label: Longhorn CSI Driver Registrar Image
- variable: csi.kubeletRootDir
default:
description: "Specify kubelet root-dir. Leave blank to autodetect."
type: string
label: Kubelet Root Directory
- variable: persistence.defaultClass
default: "true"
description: "Set as default StorageClass"

View File

@ -46,6 +46,10 @@ spec:
fieldPath: spec.serviceAccountName
- name: FLEXVOLUME_DIR
value: {{ .Values.persistence.flexvolumePath }}
{{- if .Values.csi.kubeletRootDir }}
- name: KUBELET_ROOT_DIR
value: {{ .Values.csi.kubeletRootDir }}
{{- end }}
{{- if .Values.csi.attacherImage }}
- name: CSI_ATTACHER_IMAGE
value: {{ .Values.csi.attacherImage }}

View File

@ -32,6 +32,7 @@ csi:
attacherImage:
provisionerImage:
driverRegistrarImage:
kubeletRootDir:
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious