From 1cd839ba94bf1fb18c6e5d73ee736b5b05f717aa Mon Sep 17 00:00:00 2001 From: jean-michel crepel <45998535+jeanmi151@users.noreply.github.com> Date: Thu, 26 Oct 2023 18:56:06 +0200 Subject: [PATCH] add condition for pv name in apache_nas (#12) --- apache-nas/templates/apache-nas-pvc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apache-nas/templates/apache-nas-pvc.yaml b/apache-nas/templates/apache-nas-pvc.yaml index 6030c91..e0251a6 100644 --- a/apache-nas/templates/apache-nas-pvc.yaml +++ b/apache-nas/templates/apache-nas-pvc.yaml @@ -8,7 +8,9 @@ spec: accessModes: - ReadWriteOnce storageClassName: {{ .Values.nas.volume.storage_class_name }} + {{- if .Values.nas.volume.pv_name }} volumeName: {{ .Values.nas.volume.pv_name }} + {{- end }} resources: requests: storage: {{ .Values.nas.volume.storage_size }}