From 3ac4bc87d124ecb7013e3967734a6ebd4bff7b32 Mon Sep 17 00:00:00 2001 From: Takeshi <6172961+propyless@users.noreply.github.com> Date: Fri, 4 Apr 2025 21:57:36 +0200 Subject: [PATCH] Add override for pvc volumeMode in helm chart --- helm-chart/README.md | 1 + helm-chart/templates/08-persistent-volume-claim.yaml | 1 + helm-chart/values.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/helm-chart/README.md b/helm-chart/README.md index 2aa877b09..de8f451ed 100644 --- a/helm-chart/README.md +++ b/helm-chart/README.md @@ -144,6 +144,7 @@ Example for overriding image names: | `tap.release.namespace` | Helm release namespace | `default` | | `tap.persistentStorage` | Use `persistentVolumeClaim` instead of `emptyDir` | `false` | | `tap.persistentStorageStatic` | Use static persistent volume provisioning (explicitly defined `PersistentVolume` ) | `false` | +| `tap.persistentStoragePvcVolumeMode` | Set the pvc volume mode (Filesystem\|Block) | `Filesystem` | | `tap.efsFileSytemIdAndPath` | [EFS file system ID and, optionally, subpath and/or access point](https://github.com/kubernetes-sigs/aws-efs-csi-driver/blob/master/examples/kubernetes/access_points/README.md) `::` | "" | | `tap.storageLimit` | Limit of either the `emptyDir` or `persistentVolumeClaim` | `500Mi` | | `tap.storageClass` | Storage class of the `PersistentVolumeClaim` | `standard` | diff --git a/helm-chart/templates/08-persistent-volume-claim.yaml b/helm-chart/templates/08-persistent-volume-claim.yaml index 079899161..49c4cb4c5 100644 --- a/helm-chart/templates/08-persistent-volume-claim.yaml +++ b/helm-chart/templates/08-persistent-volume-claim.yaml @@ -33,6 +33,7 @@ metadata: name: kubeshark-persistent-volume-claim namespace: {{ .Release.Namespace }} spec: + volumeMode: {{ .Values.tap.persistentStoragePvcVolumeMode }} accessModes: - ReadWriteMany resources: diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index f4e2d41f9..deb910dd3 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -33,6 +33,7 @@ tap: namespace: default persistentStorage: false persistentStorageStatic: false + persistentStoragePvcVolumeMode: Filesystem efsFileSytemIdAndPath: "" storageLimit: 5000Mi storageClass: standard