From 470a69c6f406a8690b394fb654e1f3d2288a3bb8 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Tue, 18 Jul 2023 16:40:39 -0500 Subject: [PATCH] Add volumeMode option to volumes --- charts/generic/Chart.yaml | 2 +- charts/generic/templates/volumes.yaml | 1 + charts/generic/values.yaml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/generic/Chart.yaml b/charts/generic/Chart.yaml index b0cef5c..a42a78a 100644 --- a/charts/generic/Chart.yaml +++ b/charts/generic/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: generic description: A generic helm chart that handles a bunch of common application deploy cases type: application -version: 1.0.0 +version: 1.1.0 diff --git a/charts/generic/templates/volumes.yaml b/charts/generic/templates/volumes.yaml index bb84821..4b30293 100644 --- a/charts/generic/templates/volumes.yaml +++ b/charts/generic/templates/volumes.yaml @@ -6,6 +6,7 @@ apiVersion: v1 metadata: name: {{ $fullName }}-{{ .name }} spec: + volumeMode: {{ .volumeMode | default "Filesystem" }} accessModes: - ReadWriteOnce resources: diff --git a/charts/generic/values.yaml b/charts/generic/values.yaml index 8459b0d..26f71fd 100644 --- a/charts/generic/values.yaml +++ b/charts/generic/values.yaml @@ -125,6 +125,7 @@ volumes: [] # readOnly: false # size: 1Gi # storageClassName: longhorn +# volumeMode: Filesystem|Block resources: {} # We usually recommend not to specify default resources and to leave this as a conscious