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 <1865999+dragoangel@users.noreply.github.com>
  • Loading branch information
dragoangel authored and nixpanic committed Mar 12, 2024
1 parent 948d5e0 commit 3d1b381
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 3d1b381

Please sign in to comment.