deploy: add option to set default-fstype in provisioner

external-provisioner is exposing a new argument
to set the default fstype while starting the provisioner
sidecar, if the fstype is not specified in the storageclass
the default fstype will be applied for the pvc created from
the storageclass.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-12-08 16:19:39 +05:30 committed by mergify[bot]
parent 7d3bff0654
commit 518ccf42b3
3 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,7 @@ spec:
- "--timeout={{ .Values.provisioner.timeout }}" - "--timeout={{ .Values.provisioner.timeout }}"
- "--leader-election=true" - "--leader-election=true"
- "--retry-interval-start=500ms" - "--retry-interval-start=500ms"
- "--default-fstype={{ .Values.provisioner.defaultFSType }}"
{{- if .Values.topology.enabled }} {{- if .Values.topology.enabled }}
- "--feature-gates=Topology=true" - "--feature-gates=Topology=true"
{{- end }} {{- end }}

View File

@ -110,6 +110,8 @@ nodeplugin:
provisioner: provisioner:
name: provisioner name: provisioner
replicaCount: 3 replicaCount: 3
# if fstype is not specified in storageclass, ext4 is default
defaultFSType: ext4
# deployController to enable or disable the deployment of controller which # deployController to enable or disable the deployment of controller which
# generates the OMAP data if its not Present. # generates the OMAP data if its not Present.
deployController: true deployController: true

View File

@ -51,6 +51,8 @@ spec:
- "--leader-election=true" - "--leader-election=true"
# set it to true to use topology based provisioning # set it to true to use topology based provisioning
- "--feature-gates=Topology=false" - "--feature-gates=Topology=false"
# if fstype is not specified in storageclass, ext4 is default
- "--default-fstype=ext4"
env: env:
- name: ADDRESS - name: ADDRESS
value: unix:///csi/csi-provisioner.sock value: unix:///csi/csi-provisioner.sock