Skip to content

Commit 2a3cb4e

Browse files
committed
charts: support host StorageClass config on helm chart
Signed-off-by: Vicente Cheng <[email protected]>
1 parent d731603 commit 2a3cb4e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

charts/harvester-csi-driver/templates/daemonset.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ spec:
4646
- --nodeid=$(NODE_ID)
4747
- --endpoint=$(CSI_ENDPOINT)
4848
- --kubeconfig=/var/lib/harvester/cloud-provider-config
49+
{{- if .Values.hostStorageClass }}
50+
- --host-storage-class={{ .Values.hostStorageClass }}
51+
{{- end }}
4952
env:
5053
- name: NODE_ID
5154
valueFrom:

charts/harvester-csi-driver/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ image:
2626
nameOverride: ""
2727
fullnameOverride: ""
2828

29+
# This field can be used to specify the corresponding StorageClass on the host cluster.
30+
hostStorageClass: ""
2931
kubeletRootDir: /var/lib/kubelet
3032
cloudConfig:
3133
secretName: ""

0 commit comments

Comments
 (0)