Skip to content

Commit dfbfe92

Browse files
Copilotandyzhangx
andcommitted
Add driver.labels option to helm chart for CSIDriver labels
Co-authored-by: andyzhangx <[email protected]>
1 parent 9adad1c commit dfbfe92

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed
26 Bytes
Binary file not shown.

charts/latest/csi-driver-smb/templates/csi-smb-driver.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ apiVersion: storage.k8s.io/v1
33
kind: CSIDriver
44
metadata:
55
name: {{ .Values.driver.name }}
6+
{{- if .Values.driver.labels }}
7+
labels:
8+
{{ toYaml .Values.driver.labels | indent 4 }}
9+
{{- end }}
610
spec:
711
attachRequired: false
812
podInfoOnMount: true

charts/latest/csi-driver-smb/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ rbac:
3636

3737
driver:
3838
name: smb.csi.k8s.io
39+
labels: {}
3940

4041
feature:
4142
enableGetVolumeStats: true

0 commit comments

Comments
 (0)