mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-21 04:20:23 +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>
13 lines
296 B
YAML
13 lines
296 B
YAML
{{ if semverCompare ">=1.18.0-beta.1" .Capabilities.KubeVersion.Version }}
|
|
apiVersion: storage.k8s.io/v1
|
|
{{ else }}
|
|
apiVersion: storage.k8s.io/v1beta1
|
|
{{ end }}
|
|
kind: CSIDriver
|
|
metadata:
|
|
name: {{ .Values.driverName }}
|
|
spec:
|
|
attachRequired: false
|
|
podInfoOnMount: false
|
|
fsGroupPolicy: File
|