mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-28 16:00:22 +00:00
1856647506
While creating subvolumes, CephFS driver set the mode to `777` and pass it along to go ceph apis which cause the subvolume permission to be on 777, however if we create a subvolume directly in the ceph cluster, the default permission bits are set which is 755 for the subvolume. This commit try to stick to the default behaviour even while creating the subvolume. This also means that we can work with fsgrouppolicy set to `File` in csiDriver object which is also addressed in this commit. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
12 lines
252 B
YAML
12 lines
252 B
YAML
---
|
|
# if Kubernetes version is less than 1.18 change
|
|
# apiVersion to storage.k8s.io/v1beta1
|
|
apiVersion: storage.k8s.io/v1
|
|
kind: CSIDriver
|
|
metadata:
|
|
name: cephfs.csi.ceph.com
|
|
spec:
|
|
attachRequired: false
|
|
podInfoOnMount: false
|
|
fsGroupPolicy: File
|