Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 051aaf8

Browse files
committedOct 8, 2024·
charts: support host StorageClass config on helm chart
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
1 parent 38f4e14 commit 051aaf8

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
@@ -25,6 +25,8 @@ image:
2525
nameOverride: ""
2626
fullnameOverride: ""
2727

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

0 commit comments

Comments
 (0)
Please sign in to comment.