Skip to content

Commit

Permalink
helm: Include seLinuxMount only if KubeVersion greater or equal of 1.…
Browse files Browse the repository at this point in the history
…25.0

Signed-off-by: Dmytro Alieksieiev <1865999+dragoangel@users.noreply.github.com>
  • Loading branch information
dragoangel committed Mar 5, 2024
1 parent 328e4e5 commit e657fa6
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-0" .Capabilities.KubeVersion.GitVersion }}
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-0" .Capabilities.KubeVersion.GitVersion }}
seLinuxMount: true
{{- end }}

0 comments on commit e657fa6

Please sign in to comment.