Fix the helm install failed
[pti/o2.git] / charts / templates / persistent_volume.yaml
index c39d70a..4f20cd7 100644 (file)
@@ -13,6 +13,7 @@
 #  limitations under the License.
 
 ---
+{{- if .Values.db.persistence }}
 apiVersion: v1
 kind: PersistentVolumeClaim
 metadata:
@@ -25,4 +26,5 @@ spec:
     requests:
       storage: {{ .Values.db.storageSize }}
   storageClassName: general
+{{- end }}
 ---
\ No newline at end of file