From 3027b92b7b0ff549e0756d283ad87930bbc2ec28 Mon Sep 17 00:00:00 2001 From: "sysadmin.maksim.p" Date: Thu, 4 Jan 2024 16:34:27 +0200 Subject: [PATCH] allow modify fsGroupPolicy for csidriver --- charts/ceph-csi-cephfs/templates/csidriver-crd.yaml | 2 +- charts/ceph-csi-cephfs/values.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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