mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
helm: CSIDriver add labels and seLinuxMount disabling method
Signed-off-by: Ruslan Khizhnyak <rkhizhnyak@ptsecurity.com>
This commit is contained in:
committed by
mergify[bot]
parent
cd18490451
commit
d56c9abbce
@ -2,10 +2,16 @@ apiVersion: storage.k8s.io/v1
|
||||
kind: CSIDriver
|
||||
metadata:
|
||||
name: {{ .Values.driverName }}
|
||||
labels:
|
||||
app: {{ include "ceph-csi-cephfs.name" . }}
|
||||
chart: {{ include "ceph-csi-cephfs.chart" . }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
{{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }}
|
||||
spec:
|
||||
attachRequired: false
|
||||
podInfoOnMount: false
|
||||
fsGroupPolicy: {{ default "File" .Values.CSIDriver.fsGroupPolicy }}
|
||||
{{- if semverCompare ">= 1.25.x" .Capabilities.KubeVersion.Version }}
|
||||
fsGroupPolicy: {{ .Values.CSIDriver.fsGroupPolicy }}
|
||||
{{- if and (semverCompare ">= 1.25.x" .Capabilities.KubeVersion.Version) .Values.seLinuxMount }}
|
||||
seLinuxMount: true
|
||||
{{- end }}
|
||||
|
@ -57,6 +57,7 @@ sidecarLogLevel: 1
|
||||
# accessModes contains ReadWriteOnce.
|
||||
CSIDriver:
|
||||
fsGroupPolicy: "File"
|
||||
seLinuxMount: true
|
||||
|
||||
nodeplugin:
|
||||
name: nodeplugin
|
||||
|
Reference in New Issue
Block a user