Skip to content

Commit ad56e3f

Browse files
authored
Merge pull request #495 from andyzhangx/enable-GetVolumeStats
feat: enable GetVolumeStats by default
2 parents c495e08 + 7d9d872 commit ad56e3f

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed
2 Bytes
Binary file not shown.

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ spec:
2424
{{- end }}
2525
nodeSelector:
2626
kubernetes.io/os: windows
27+
{{- with .Values.node.nodeSelector }}
28+
{{ toYaml . | indent 8 }}
29+
{{- end }}
30+
{{- with .Values.node.affinity }}
31+
affinity:
32+
{{ toYaml . | indent 8 }}
33+
{{- end }}
2734
priorityClassName: system-node-critical
2835
serviceAccountName: {{ .Values.serviceAccount.node }}
2936
{{- include "smb.pullSecrets" . | indent 6 }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ driver:
3030
name: smb.csi.k8s.io
3131

3232
feature:
33-
enableGetVolumeStats: false
33+
enableGetVolumeStats: true
3434

3535
controller:
3636
name: csi-smb-controller

cmd/smbplugin/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var (
4242
ver = flag.Bool("ver", false, "Print the version and exit.")
4343
metricsAddress = flag.String("metrics-address", "0.0.0.0:29644", "export the metrics")
4444
kubeconfig = flag.String("kubeconfig", "", "Absolute path to the kubeconfig file. Required only when running out of cluster.")
45-
enableGetVolumeStats = flag.Bool("enable-get-volume-stats", false, "allow GET_VOLUME_STATS on agent node")
45+
enableGetVolumeStats = flag.Bool("enable-get-volume-stats", true, "allow GET_VOLUME_STATS on agent node")
4646
workingMountDir = flag.String("working-mount-dir", "/tmp", "working directory for provisioner to mount smb shares temporarily")
4747
)
4848

0 commit comments

Comments
 (0)