From fcaac58a1ecef763d38deecc5cfb00bb21afc475 Mon Sep 17 00:00:00 2001 From: Dmytro Alieksieiev <1865999+dragoangel@users.noreply.github.com> Date: Tue, 5 Mar 2024 12:36:51 +0100 Subject: [PATCH] helm: Include seLinuxMount only if KubeVersion greater or equal of 1.25 Signed-off-by: Dmytro Alieksieiev <1865999+dragoangel@users.noreply.github.com> --- charts/ceph-csi-cephfs/templates/csidriver-crd.yaml | 2 ++ charts/ceph-csi-rbd/templates/csidriver-crd.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/charts/ceph-csi-cephfs/templates/csidriver-crd.yaml b/charts/ceph-csi-cephfs/templates/csidriver-crd.yaml index 50b2e5fef..f6fe14a3e 100644 --- a/charts/ceph-csi-cephfs/templates/csidriver-crd.yaml +++ b/charts/ceph-csi-cephfs/templates/csidriver-crd.yaml @@ -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 }} diff --git a/charts/ceph-csi-rbd/templates/csidriver-crd.yaml b/charts/ceph-csi-rbd/templates/csidriver-crd.yaml index 09b4ce0d5..99026f628 100644 --- a/charts/ceph-csi-rbd/templates/csidriver-crd.yaml +++ b/charts/ceph-csi-rbd/templates/csidriver-crd.yaml @@ -6,4 +6,6 @@ spec: attachRequired: true podInfoOnMount: false fsGroupPolicy: File +{{- if semverCompare ">= 1.25.x" .Capabilities.KubeVersion.Version }} seLinuxMount: true +{{- end }}