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 }}