From 1636faf40dd0ddd6b106c5e33a3045e98715328f Mon Sep 17 00:00:00 2001 From: Ween Jiann <16207788+lwj5@users.noreply.github.com> Date: Fri, 9 Jul 2021 22:23:18 +0800 Subject: [PATCH] Add access modes to PVC in chart (#378) * Add accessmodes * Bump chart version --- charts/invoiceninja/Chart.yaml | 2 +- charts/invoiceninja/templates/pvc.yaml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/invoiceninja/Chart.yaml b/charts/invoiceninja/Chart.yaml index 82df089..ed4e465 100644 --- a/charts/invoiceninja/Chart.yaml +++ b/charts/invoiceninja/Chart.yaml @@ -13,7 +13,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.7.4 +version: 0.7.5 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. diff --git a/charts/invoiceninja/templates/pvc.yaml b/charts/invoiceninja/templates/pvc.yaml index c3b9eac..2694563 100644 --- a/charts/invoiceninja/templates/pvc.yaml +++ b/charts/invoiceninja/templates/pvc.yaml @@ -14,7 +14,13 @@ metadata: {{- end }} spec: accessModes: + {{- if not (empty .Values.persistence.public.accessModes) }} + {{- range .Values.persistence.public.accessModes }} + - {{ . | quote }} + {{- end }} + {{- else }} - {{ .Values.persistence.public.accessMode | quote }} + {{- end }} resources: requests: storage: {{ .Values.persistence.public.size | quote }} @@ -41,7 +47,13 @@ metadata: {{- end }} spec: accessModes: + {{- if not (empty .Values.persistence.storage.accessModes) }} + {{- range .Values.persistence.storage.accessModes }} + - {{ . | quote }} + {{- end }} + {{- else }} - {{ .Values.persistence.storage.accessMode | quote }} + {{- end }} resources: requests: storage: {{ .Values.persistence.storage.size | quote }}