Skip to content

Commit

Permalink
helm: Include seLinuxMount only if KubeVersion greater or equal of 1.25
Browse files Browse the repository at this point in the history
Signed-off-by: Dmytro Alieksieiev <[email protected]>
  • Loading branch information
dragoangel authored and mergify[bot] committed Mar 13, 2024
1 parent 948d5e0 commit fcaac58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/ceph-csi-cephfs/templates/csidriver-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ spec:
attachRequired: false
podInfoOnMount: false
fsGroupPolicy: {{ default "File" .Values.CSIDriver.fsGroupPolicy }}
{{- if semverCompare ">= 1.25.x" .Capabilities.KubeVersion.Version }}
seLinuxMount: true
{{- end }}
2 changes: 2 additions & 0 deletions charts/ceph-csi-rbd/templates/csidriver-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ spec:
attachRequired: true
podInfoOnMount: false
fsGroupPolicy: File
{{- if semverCompare ">= 1.25.x" .Capabilities.KubeVersion.Version }}
seLinuxMount: true
{{- end }}

0 comments on commit fcaac58

Please sign in to comment.