diff --git a/charts/ceph-csi-cephfs/templates/csidriver-crd.yaml b/charts/ceph-csi-cephfs/templates/csidriver-crd.yaml index 20fa59fdb07..50b2e5fef2d 100644 --- a/charts/ceph-csi-cephfs/templates/csidriver-crd.yaml +++ b/charts/ceph-csi-cephfs/templates/csidriver-crd.yaml @@ -5,5 +5,5 @@ metadata: spec: attachRequired: false podInfoOnMount: false - fsGroupPolicy: File + fsGroupPolicy: {{ default "File" .Values.CSIDriver.fsGroupPolicy }} seLinuxMount: true diff --git a/charts/ceph-csi-cephfs/values.yaml b/charts/ceph-csi-cephfs/values.yaml index 341c42c7ca0..b38e3949a14 100644 --- a/charts/ceph-csi-cephfs/values.yaml +++ b/charts/ceph-csi-cephfs/values.yaml @@ -41,6 +41,10 @@ logLevel: 5 # sidecarLogLevel is the variable for Kubernetes sidecar container's log level sidecarLogLevel: 1 + +CSIDriver: + fsGroupPolicy: "File" + nodeplugin: name: nodeplugin # if you are using ceph-fuse client set this value to OnDelete