helm: Include seLinuxMount only if KubeVersion greater or equal of 1.25

Signed-off-by: Dmytro Alieksieiev <1865999+dragoangel@users.noreply.github.com>
This commit is contained in:
Dmytro Alieksieiev 2024-03-05 12:36:51 +01:00 committed by mergify[bot]
parent 948d5e0b5d
commit fcaac58a1e
2 changed files with 4 additions and 0 deletions

View File

@ -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 }}

View File

@ -6,4 +6,6 @@ spec:
attachRequired: true
podInfoOnMount: false
fsGroupPolicy: File
{{- if semverCompare ">= 1.25.x" .Capabilities.KubeVersion.Version }}
seLinuxMount: true
{{- end }}